Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

LATLNG Heading and Bearing are not treated as numbers. #212

Closed Stiggles closed 10 years ago

Stiggles commented 10 years ago

I was attempting to use polar triangulation to get information on the ship's heading and pitch, but the code brings errors on the heading and bearing values when used in expressions.

The code: set X to latLng(90,0). print x:heading. print x:heading+1.

...should output something like*: 0 1

...instead of the error: "Can't add number and number"

*(when near zero, it outputs the value in scientific notation, zero has been used instead.)

Additionally the code: print round(x:heading).

...Outputs: "The supplied parameter 'x:heading' is not a number."