Hi All

I am very new to this but are working on a guidance system for a boat.
While searching the net I found the MicroMega uM-FPU V3.1 math co processor. http://www.micromegacorp.com/other.html
At $20 USD it seems reasonably priced and well suited to GPS Math, as a bouns it even parses NMEA strings.
Overkill you say.... maybe.
I have started playing with the Haversine formula and the spherical law of cosines and find the calculations in them very numerically 'hungry'.
For instance when you are doing calculations on a handheld scientific calculator and when you press = the screen blanks for perhaps a second before giving an answer you know the claculations are processor hungry.

Has anybody played with mact co processor for their autopilot systems? If so How helpful have they found them?

Thanks

Bruce

Views: 7

Reply to This

Replies to This Discussion

I haven't looked at that math co-processor since we gave up on the Basic Stamp. What processor are you using? GPS shouldn't bring anything modern to its knees.
Thats good news,

I had heard that advanced maths like those mentioned above were too much for the PIC.
I am currently using a 16F877 but considering upgrading to a processor with much more program memory and running it a bit faster than my current 10Mhz.
Thankfully the compiler I am using has sin, cos, tan as well as asin, acos, and atan therefore at least in theory the processor will be able to do the maths.

I found a website called math forum which lists a formula for calculating a target lat and long from a start lat and long as well as a heading and a distance.
Are still playing around with the calcs on paper and google earth to try them out pefore implementing them in code.
I have no experience in maths and floating point numbers in the pic, is the PIC capable of performing navigational calcs and guidance in a timely manner?

Thanks for your help Chris

Regards

Bruce
Remember that you only have to do the calculations at most five times a second. And, as Jack mentioned, you can always use lookup tables.(which is what we do with ArduPilot running on a 20 MIPS Atmega.
U can work around the math by doing tricks like reading GPS in binary form. That gets you directly into fixed point base 2. Then you can determine angles and distances between points by doing iterative subtraction and lookup tables in fixed point. Personally stopped bothering with it and moved to 2 way radio for the FLOPS. If someone is trying to make a living on microcontroller coprocessors, by all means support their business.

RSS

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The third round was a reliablilty/aerial photography round for both planes and copters, which is now closed. Stay tuned for the next round, beginning soon.

A list of all T3 contests is here

 

Groups

© 2012   Created by Chris Anderson.

Badges  |  Report an Issue  |  Terms of Service