Component: Injector (GPS NMEA) ()

From Flowcode Help
Jump to navigationJump to search
Author Matrix Ltd
Version 1.0
Category


Injector (GPS NMEA) component

Comms data injector to allow simulation of NMEA style GPS messages

Component Source Code

Please click here to download the component source project: FC_Comp_Source_InjectorGPS.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_InjectorGPS.fcfx

Detailed description

No detailed description exists yet for this component

Examples

GPS Example File FC6 Icon.png GPS Example Example should show the Latitude generated by the GPS injector as well as the system time in simulation or UTC time on hardware.

GPS.jpg


Example data provided by the GPS NMEA injector component

GPSCon.jpg






Macro reference

GetConsoleHandle

Fc9-comp-macro.png GetConsoleHandle
Gets the handle to the console allowing data displaying on the panel etc. 
Fc9-h32-icon.png - HANDLE Return


InitialiseInjector

Fc9-comp-macro.png InitialiseInjector
Sets up the injector ready to receive commands or send data 
Fc9-string-icon.png - STRING InjectorName
Name of the console that will be created 
Fc9-u8-icon.png - BYTE Return


RxByte

Fc9-comp-macro.png RxByte
Attempt to receive a byte back from the injector 0 - 255 = Valid data 256 = RX timeout no data available 
Fc9-u16-icon.png - UINT Return


RxByteCount

Fc9-comp-macro.png RxByteCount
Returns the number of bytes currently sat in the receive buffer. 
Fc9-u16-icon.png - UINT Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png GPS Injector Settings
Fc9-type-21-icon.png Data Period (ms)
Amount of time in milliseconds to wait between each GPS NMEA packet is sent. Default 1000. 
Fc9-type-21-icon.png Circular Buffer Size
Max number of bytes the receive queue can hold. Default 1000. 
Fc9-conn-icon.png GPS Location Settings
Fc9-type-7-icon.png Data Valid
Injected GPS data validity 
Fc9-type-15-icon.png Altitude
Injected GPS Altitude 
Fc9-type-15-icon.png Course Over Ground
Injected GPS course over ground (COG) 
Fc9-type-15-icon.png Dilution Of Precision
Injected GPS dilution of precision (DOP) 
Fc9-type-15-icon.png Ground Speed
Injected GPS ground speed (Knotts) 
Fc9-type-15-icon.png HDOP
Injected GPS horizontal dilution of precision (HDOP) 
Fc9-type-15-icon.png Latitude
Injected GPS lattitude 
Fc9-type-15-icon.png Longitude
Injected GPS longitude 
Fc9-type-21-icon.png Number Of Satellites
Injected GPS number of active satellites 
Fc9-type-15-icon.png VDOP
Injected GPS vertical dilution of precision (VDOP) 
Fc9-conn-icon.png Time & Date Settings
Fc9-type-16-icon.png Data Source
Injected GPS source for UTC time and date