HELP Using the uF-MPU math coprocessor
Brian Carpenter
Posts: 728
i have an equation that i need to solve with the math coprocessor.· anyone have experience with this?
The math is
Altitude = (10^(log(P/S)/5.2558797)-1)/-6.8755856*10^-6
Altitude is in Feet
P is a variable from an ADC
S is a constant that could just be added to the equation.· it should be 208
Any ideas on how to do this?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
The math is
Altitude = (10^(log(P/S)/5.2558797)-1)/-6.8755856*10^-6
Altitude is in Feet
P is a variable from an ADC
S is a constant that could just be added to the equation.· it should be 208
Any ideas on how to do this?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
Comments
If you don't have a time critical application, that could work.
I wrote about the um-FPU in my column: http://www.parallax.com/dl/docs/cols/nv/vol6/col/nv123.pdf
I've attached a screen shot of the latest IDE with your equation installed.· It compiles ... you'll have to determine if it works.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax