Difference between revisions of "Component: GPS (EB056, Generic NMEA) (Wireless)"
From Flowcode Help
Jump to navigationJump to search (XML import) |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {| style="width:50%" | |
− | |||
− | {| | ||
|- | |- | ||
− | | width="20%" style="color: gray;" | Author | + | | width="20%" style="color:gray;" | Author |
| Matrix Ltd. | | Matrix Ltd. | ||
|- | |- | ||
− | | width="20%" style="color: gray;" | Version | + | | width="20%" style="color:gray;" | Version |
− | | 1 | + | | 2.1 |
|- | |- | ||
− | | width="20%" style="color: gray;" | Category | + | | width="20%" style="color:gray;" | Category |
| Wireless | | Wireless | ||
|} | |} | ||
+ | ==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 Pack== |
− | |||
− | |||
− | |||
− | + | COMMSB | |
− | |||
− | |||
− | |||
− | + | ==Detailed description== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ''No detailed description exists yet for this component'' | |
+ | ==Examples== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | GPS Example File | |
− | + | {{Fcfile|GPS_test2.fcfx|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. | ||
− | + | [[File:GPS.jpg]] | |
− | |||
− | + | Example data provided by the GPS NMEA injector component | |
+ | [[File:GPSCon.jpg]] | ||
− | |||
− | |||
+ | GPS tracking application using an Arduino and an SD card reader. | ||
+ | {{Fcfile|GPSTracker.fcfx|GPS Tracker}} | ||
− | === | + | ==Downloadable macro reference== |
− | |||
− | Only returns correct data if Log | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadGroundSpeed''' | ||
+ | |- | ||
+ | | colspan="2" | Returns the current ground speed. Only returns correct data if Log Ground Speed property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | :'' | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadNumberOfSatellites''' | ||
+ | |- | ||
+ | | colspan="2" | Returns the current detected number of satellites. Only returns correct data if Log Satellite Count property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | '''Return | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadDilutionOfPrecision''' | ||
+ | |- | ||
+ | | colspan="2" | Returns the current dilution of precision. Only returns correct data if Log Dilution Of Precision property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CheckBufferOverflow''' | ||
+ | |- | ||
+ | | colspan="2" | 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. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | |||
− | Only returns correct data if Log Longitude property is set to yes. | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLongitude''' | ||
+ | |- | ||
+ | | colspan="2" | Returns the current longitude. Only returns correct data if Log Longitude property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | :'' | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadUTCTime''' | ||
+ | |- | ||
+ | | colspan="2" | Returns a segment of the current UTC Time. Only returns correct data if Log UTC Time property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | Unit | ||
+ | |- | ||
+ | | colspan="2" | Specifies which segment to read - 'h', 'm', 's' | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | '''Return | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IsDataValid''' | ||
+ | |- | ||
+ | | colspan="2" | Returns the state of the incoming data - 0 = NotValid, 1 = Valid 255 = No GPS Data Received. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadHorizontalDilutionOfPrecision''' | ||
+ | |- | ||
+ | | colspan="2" | Returns the current horizontal dilution of precision. Only returns correct data if Log HDOP property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | |||
− | Only returns correct data if Log | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAltitude''' | ||
+ | |- | ||
+ | | colspan="2" | Returns the current altitude. Only returns correct data if Log Altitude property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | :[[ | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
− | :: | + | |- |
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadCourseOverGround''' | ||
+ | |- | ||
+ | | colspan="2" | Returns the current course over ground. Only returns correct data if Log Course Over Ground property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | '''Return | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadUTCDate''' | ||
+ | |- | ||
+ | | colspan="2" | Returns a segment of the current UTC Date. Only returns correct data if Log UTC Date property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | Unit | ||
+ | |- | ||
+ | | colspan="2" | Specifies which segment to read - 'd', 'm', 'y' | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadVerticalDilutionOfPrecision''' | ||
+ | |- | ||
+ | | colspan="2" | Returns the current vertical dilution of precision. Only returns correct data if Log VDOP property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | |||
− | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLatitude''' | ||
+ | |- | ||
+ | | colspan="2" | Returns the current latitude. Only returns correct data if Log Latitude property is set to yes. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | |
− | + | |- | |
− | + | | colspan="2" | Initialises the UART used to communicate with the GPS module. | |
− | + | |- | |
− | + | |- | |
− | = | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID |
− | + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | |
− | + | |} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | : | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | = | ||
− | |||
− | |||
− | |||
− | |||
− | ''' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | = | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Property reference== | ==Property reference== | ||
− | |||
− | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
− | + | |- | |
− | The maximum number of bytes of a NMEA message we can store before processing the message. | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | |
− | + | |- | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |
− | + | | width="90%" | Buffer Size | |
− | Adds a variable to store the incoming altitude value | + | |- |
− | + | | colspan="2" | The maximum number of bytes of a NMEA message we can store before processing the message. | |
− | Referenced by macro: ReadAltitude | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | |
− | + | | width="90%" | Log Altitude | |
− | + | |- | |
− | + | | colspan="2" | Adds a variable to store the incoming altitude value Referenced by macro: ReadAltitude | |
− | + | |- | |
− | Adds a variable to store if the incoming message buffer overflows | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] |
− | + | | width="90%" | Log Buffer Overflow | |
− | Referenced by macro: CheckBufferOverflow | + | |- |
− | + | | colspan="2" | Adds a variable to store if the incoming message buffer overflows Referenced by macro: CheckBufferOverflow | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | |
− | + | | width="90%" | Log Course Over Ground | |
− | + | |- | |
− | Adds a variable to store the incoming course over ground value | + | | colspan="2" | Adds a variable to store the incoming course over ground value Referenced by macro: ReadCourseOverGround |
− | + | |- | |
− | Referenced by macro: ReadCourseOverGround | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] |
− | + | | width="90%" | Log Dilution Of Precision | |
− | + | |- | |
− | + | | colspan="2" | Adds a variable to store the incoming DOP value Referenced by macro: ReadDilutionOfPrecision | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | |
− | Adds a variable to store the incoming DOP value | + | | width="90%" | Log Ground Speed |
− | + | |- | |
− | Referenced by macro: ReadDilutionOfPrecision | + | | colspan="2" | Adds a variable to store the incoming ground speed value Referenced by macro: ReadGroundSpeed |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | |
− | + | | width="90%" | Log Horizontal DOP | |
− | + | |- | |
− | + | | colspan="2" | Adds a variable to store the incoming HDOP value Referenced by macro: ReadHorizontalDilutionOfPrecision | |
− | Adds a variable to store the incoming ground speed value | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | |
− | Referenced by macro: ReadGroundSpeed | + | | width="90%" | Log Latitude |
− | + | |- | |
− | + | | colspan="2" | Adds a variable to store the incoming latitude value Referenced by macro: ReadLatitude | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | |
− | + | | width="90%" | Log Longitude | |
− | Adds a variable to store the incoming HDOP value | + | |- |
− | + | | colspan="2" | Adds a variable to store the incoming longitude value Referenced by macro: Read Longitude | |
− | Referenced by macro: ReadHorizontalDilutionOfPrecision | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | |
− | + | | width="90%" | Log Satellite Count | |
− | + | |- | |
− | + | | colspan="2" | Adds a variable to store the number of satellites in range Referenced by macro: ReadNumberOfSatellites | |
− | + | |- | |
− | Adds a variable to store the incoming latitude value | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] |
− | + | | width="90%" | Log UTC Time | |
− | Referenced by macro: ReadLatitude | + | |- |
− | + | | colspan="2" | Adds a variable to store the incoming UTC Time value Referenced by macro: ReadUTCTime | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | |
− | + | | width="90%" | Log UTC Date | |
− | + | |- | |
− | Adds a variable to store the incoming longitude value | + | | colspan="2" | Adds a variable to store the incoming UTC Date value Referenced by macro: ReadUTCDate |
− | + | |- | |
− | Referenced by macro: Read Longitude | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] |
− | + | | width="90%" | Log Verticle DOP | |
− | + | |- | |
− | + | | colspan="2" | Adds a variable to store the incoming VDOP value Referenced by macro: ReadVerticalDilutionOfPrecision | |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | |
− | Adds a variable to store the number of satellites in range | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections |
− | + | |- | |
− | Referenced by macro: ReadNumberOfSatellites | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | + | | width="90%" | Channel | |
− | + | |- | |
− | + | | colspan="2" | UART Channel selector Software channels are bit banged using generic I/O pins but are not as reliable as hardware channels. Hardware channels use the selected peripheral on-board the target microcontroller. | |
− | + | |- | |
− | Adds a variable to store the incoming UTC Time value | + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] |
− | + | | width="90%" | RX | |
− | Referenced by macro: ReadUTCTime | + | |- |
− | + | | colspan="2" | Pin to be used for Receive data | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | + | | width="90%" | Baud Options | |
− | + | |- | |
− | Adds a variable to store the incoming UTC Date value | + | | colspan="2" | Baud rate option selector |
− | + | |- | |
− | Referenced by macro: ReadUTCDate | + | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]] |
− | + | | width="90%" | Baud Rate | |
− | + | |- | |
− | + | | colspan="2" | | |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | |
− | Adds a variable to store the incoming VDOP value | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation |
− | + | |- | |
− | Referenced by macro: ReadVerticalDilutionOfPrecision | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-10-icon.png]] | |
− | + | | width="90%" | Label | |
− | + | |- | |
− | + | | colspan="2" | Label used to help identify the component on the panel. | |
− | + | |- | |
− | UART Channel | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] |
− | + | | width="90%" | Show Globe | |
− | + | |- | |
− | + | | colspan="2" | Allows a graphical globe to be shown on the panel along with a coordinate marker. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | |
− | + | | width="90%" | Scope Traces | |
− | + | |- | |
− | + | | colspan="2" | Selects if the scope traces are automatically added to the data recorder window or not. Simulation - draws an approximation of the UART data onto the scope trace. ICT - sets up the scope trace for incoming data and adds UART packet decoding at the correct BAUD. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | |
− | + | | width="90%" | Console Data | |
− | + | |- | |
− | + | | colspan="2" | Selects if the console data is automatically generated or not | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |
− | + | | width="90%" | Console Columns | |
− | + | |- | |
− | + | | colspan="2" | Number of characters that can be displayed on a single line of the console. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | + | | width="90%" | Data Source | |
− | + | |- | |
− | + | | colspan="2" | Simulation data source used to allow the component to connect to various remote devices Nothing - Simulation data is ignored COM port - Routes the communication data to and from a physical or virtual COM port Injector - Routes the communication data via a data injector component on the Panel. | |
− | Label used to help identify the component on the panel. | + | |} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | Allows a graphical globe to be shown on the panel along with a coordinate marker. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | COM port |
Latest revision as of 17:20, 9 November 2022
Author | Matrix Ltd. |
Version | 2.1 |
Category | Wireless |
Contents
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 Pack
COMMSB
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
Downloadable macro reference
![]() |
ReadGroundSpeed |
Returns the current ground speed. Only returns correct data if Log Ground Speed property is set to yes. | |
![]() |
Return |
![]() |
ReadNumberOfSatellites |
Returns the current detected number of satellites. Only returns correct data if Log Satellite Count property is set to yes. | |
![]() |
Return |
![]() |
ReadDilutionOfPrecision |
Returns the current dilution of precision. Only returns correct data if Log Dilution Of Precision property is set to yes. | |
![]() |
Return |
![]() |
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 |
Returns the current longitude. Only returns correct data if Log Longitude property is set to yes. | |
![]() |
Return |
![]() |
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 |
Returns the state of the incoming data - 0 = NotValid, 1 = Valid 255 = No GPS Data Received. | |
![]() |
Return |
![]() |
ReadHorizontalDilutionOfPrecision |
Returns the current horizontal dilution of precision. Only returns correct data if Log HDOP property is set to yes. | |
![]() |
Return |
![]() |
ReadAltitude |
Returns the current altitude. Only returns correct data if Log Altitude property is set to yes. | |
![]() |
Return |
![]() |
ReadCourseOverGround |
Returns the current course over ground. Only returns correct data if Log Course Over Ground property is set to yes. | |
![]() |
Return |
![]() |
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 |
Returns the current vertical dilution of precision. Only returns correct data if Log VDOP property is set to yes. | |
![]() |
Return |
![]() |
ReadLatitude |
Returns the current latitude. Only returns correct data if Log Latitude property is set to yes. | |
![]() |
Return |
![]() |
Initialise |
Initialises the UART used to communicate with the GPS module. | |
![]() |
Return |