gpsEnableNMEA (Function) |
Top Previous Next |
By using this function, it is possible to redirect, or copy, the raw NMEA sentences that have been received from the internal GPS receiver to a specific serial port on the RTCU device. This makes it possible to connect a PDA or similar to the serial port and be able to receive navigational data without investing in a separate GPS receiver. Please note that the serial port must be open and configured prior to calling this function. If the serial port that is to be used is configured for a baud rate lower than 4800 baud, the baud rate used will be 4800. Please note that the NMEA sentences will only be forwarded to the specified port during the call of gpsFix(). It is therefore important that the function is called regularly.
The normal GPS function, gpsFix(), still continues to work regardless of this function.
Input: port : SINT This specifies which serial port to copy the NMEA data to. Please see the serOpen() for an explanation of allowed values.
enable : BOOL
Returns: None.
Declaration: FUNCTION gpsEnableNMEA;
Example: INCLUDE rtcu.inc |