Shop OBEX P1 Docs P2 Docs Learn Events
Help with DynamicMathLib — Parallax Forums

Help with DynamicMathLib

marclamarcla Posts: 19
edited 2007-12-23 14:46 in Propeller 1
Can somebody help me with DynamicMathLib.
I am trying to calculate the bearing betven to Lan, Longs.

I tested
CorrectedCoordsToDegs(01332.656, 5717.4828, 01332.656, 5717.3049) )
(The tagret position lies stright·under the other...)
But i returns:
1127481344
That isn't i degress? (Should be 180deg?)

I also tried CorrectedNavCalculation(lon1, lat1, lon2, lat2, VectorMagAddress, VectorAngleAddress)
but witch "data"·shoud·I give·VectorMagAddress, VectorAngleAddress.

Comments

  • deSilvadeSilva Posts: 2,967
    edited 2007-12-23 14:46
    marcla said...
    I also tried CorrectedNavCalculation(lon1, lat1, lon2, lat2, VectorMagAddress, VectorAngleAddress)
    but witch "data" shoud I give VectorMagAddress, VectorAngleAddress.

    An address to a LONG where the result has be written to


    ---
    Edit: But (F)CoordsTo Degs should work as well.. Please read through the library and understand what is going on there.. it's just simple trigonometry... The input is x and y however, not lat and long

    Post Edited (deSilva) : 12/23/2007 2:58:24 PM GMT
Sign In or Register to comment.