degToPosition (Function) |
Top Previous Next |
This function converts a coordinate from decimal degrees to GPS position format.
Note: This function works with DOUBLE, but can also work with FLOAT as described in the Floating-point math introductory section.
Input: v : DOUBLE Value to convert.
Returns: DINT The GPS position.
Declaration: FUNCTION degToPosition : DINT;
Example: INCLUDE rtcu.inc |