Difference between revisions of "Component: GPS (EB056, Generic NMEA) (Wireless)"
From Flowcode Help
Jump to navigationJump to searchLine 87: | Line 87: | ||
GPS tracking application using an Arduino and an SD card reader. | GPS tracking application using an Arduino and an SD card reader. | ||
{{Fcfile|GPSTracker.fcfx|GPS Tracker}} | {{Fcfile|GPSTracker.fcfx|GPS Tracker}} | ||
+ | |||
+ | |||
Line 92: | Line 94: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===ReadGroundSpeed=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 105: | Line 108: | ||
+ | ===ReadNumberOfSatellites=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 118: | Line 122: | ||
+ | ===ReadDilutionOfPrecision=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 131: | Line 136: | ||
+ | ===CheckBufferOverflow=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 144: | Line 150: | ||
+ | ===ReadLongitude=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 157: | Line 164: | ||
+ | ===ReadUTCTime=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 175: | Line 183: | ||
+ | ===IsDataValid=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 188: | Line 197: | ||
+ | ===ReadHorizontalDilutionOfPrecision=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 201: | Line 211: | ||
+ | ===ReadAltitude=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 214: | Line 225: | ||
+ | ===ReadCourseOverGround=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 227: | Line 239: | ||
+ | ===ReadUTCDate=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 245: | Line 258: | ||
+ | ===ReadVerticalDilutionOfPrecision=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 258: | Line 272: | ||
+ | ===ReadLatitude=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 271: | Line 286: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:50, 3 February 2023
Author | Matrix Ltd. |
Version | 2.1 |
Category | Wireless |
Contents
- 1 GPS (EB056, Generic NMEA) component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 ReadGroundSpeed
- 5.2 ReadNumberOfSatellites
- 5.3 ReadDilutionOfPrecision
- 5.4 CheckBufferOverflow
- 5.5 ReadLongitude
- 5.6 ReadUTCTime
- 5.7 IsDataValid
- 5.8 ReadHorizontalDilutionOfPrecision
- 5.9 ReadAltitude
- 5.10 ReadCourseOverGround
- 5.11 ReadUTCDate
- 5.12 ReadVerticalDilutionOfPrecision
- 5.13 ReadLatitude
- 5.14 Initialise
- 6 Property reference
GPS (EB056, Generic NMEA) component
Component designed to process incoming NMEA style GPS data and convert into meaningful values such as longitude, lattitude, ground speed, UTC date and time. Also available in the form of the EB056 GPS E-block.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_GPS.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_GPS.fcfx
Detailed description
No detailed description exists yet for this component
Examples
GPS Example File
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.
Example data provided by the GPS NMEA injector component
GPS tracking application using an Arduino and an SD card reader.
GPS Tracker
Macro reference
ReadGroundSpeed
![]() |
ReadGroundSpeed |
Returns the current ground speed. Only returns correct data if Log Ground Speed property is set to yes. | |
![]() |
Return |
ReadNumberOfSatellites
![]() |
ReadNumberOfSatellites |
Returns the current detected number of satellites. Only returns correct data if Log Satellite Count property is set to yes. | |
![]() |
Return |
ReadDilutionOfPrecision
![]() |
ReadDilutionOfPrecision |
Returns the current dilution of precision. Only returns correct data if Log Dilution Of Precision property is set to yes. | |
![]() |
Return |
CheckBufferOverflow
![]() |
CheckBufferOverflow |
Returns the state of the buffer - 0 = OK, 1 = BufferTooShort, 2 = ItemNotFound. Only returns correct data if Log Buffer Overflow Property is set to Yes. | |
![]() |
Return |
ReadLongitude
![]() |
ReadLongitude |
Returns the current longitude. Only returns correct data if Log Longitude property is set to yes. | |
![]() |
Return |
ReadUTCTime
![]() |
ReadUTCTime |
Returns a segment of the current UTC Time. Only returns correct data if Log UTC Time property is set to yes. | |
![]() |
Unit |
Specifies which segment to read - 'h', 'm', 's' | |
![]() |
Return |
IsDataValid
![]() |
IsDataValid |
Returns the state of the incoming data - 0 = NotValid, 1 = Valid 255 = No GPS Data Received. | |
![]() |
Return |
ReadHorizontalDilutionOfPrecision
![]() |
ReadHorizontalDilutionOfPrecision |
Returns the current horizontal dilution of precision. Only returns correct data if Log HDOP property is set to yes. | |
![]() |
Return |
ReadAltitude
![]() |
ReadAltitude |
Returns the current altitude. Only returns correct data if Log Altitude property is set to yes. | |
![]() |
Return |
ReadCourseOverGround
![]() |
ReadCourseOverGround |
Returns the current course over ground. Only returns correct data if Log Course Over Ground property is set to yes. | |
![]() |
Return |
ReadUTCDate
![]() |
ReadUTCDate |
Returns a segment of the current UTC Date. Only returns correct data if Log UTC Date property is set to yes. | |
![]() |
Unit |
Specifies which segment to read - 'd', 'm', 'y' | |
![]() |
Return |
ReadVerticalDilutionOfPrecision
![]() |
ReadVerticalDilutionOfPrecision |
Returns the current vertical dilution of precision. Only returns correct data if Log VDOP property is set to yes. | |
![]() |
Return |
ReadLatitude
![]() |
ReadLatitude |
Returns the current latitude. Only returns correct data if Log Latitude property is set to yes. | |
![]() |
Return |
Initialise
![]() |
Initialise |
Initialises the UART used to communicate with the GPS module. | |
![]() |
Return |