PX4 Firmware
PX4 Autopilot Software http://px4.io
gps_module_msg Struct Reference

The GPS sensor message Struct based on: https://code.google.com/p/diy-hott-gps/downloads. More...

#include <messages.h>

Collaboration diagram for gps_module_msg:

Public Attributes

uint8_t start
 Start byte. More...
 
uint8_t sensor_id
 GPS sensor ID. More...
 
uint8_t warning
 0…= warning beeps More...
 
uint8_t sensor_text_id
 GPS Sensor text mode ID. More...
 
uint8_t alarm_inverse1
 01 inverse status More...
 
uint8_t alarm_inverse2
 00 inverse status status 1 = no GPS Signal More...
 
uint8_t flight_direction
 119 = Flightdir. More...
 
uint8_t gps_speed_L
 8 = /GPS speed low byte 8km/h More...
 
uint8_t gps_speed_H
 0 = /GPS speed high byte More...
 
uint8_t latitude_ns
 000 = N = 48°39’988 More...
 
uint8_t latitude_min_L
 231 0xE7 = 0x12E7 = 4839 More...
 
uint8_t latitude_min_H
 018 18 = 0x12 More...
 
uint8_t latitude_sec_L
 171 220 = 0xDC = 0x03DC =0988 More...
 
uint8_t latitude_sec_H
 016 3 = 0x03 More...
 
uint8_t longitude_ew
 000 = E= 9° 25’9360 More...
 
uint8_t longitude_min_L
 150 157 = 0x9D = 0x039D = 0925 More...
 
uint8_t longitude_min_H
 003 3 = 0x03 More...
 
uint8_t longitude_sec_L
 056 144 = 0x90 0x2490 = 9360 More...
 
uint8_t longitude_sec_H
 004 36 = 0x24 More...
 
uint8_t distance_L
 027 123 = /distance low byte 6 = 6 m More...
 
uint8_t distance_H
 036 35 = /distance high byte More...
 
uint8_t altitude_L
 243 244 = /Altitude low byte 500 = 0m More...
 
uint8_t altitude_H
 001 1 = /Altitude high byte More...
 
uint8_t resolution_L
 48 = Low Byte m/s resolution 0.01m 48 = 30000 = 0.00m/s (1=0.01m/s) More...
 
uint8_t resolution_H
 117 = High Byte m/s resolution 0.01m More...
 
uint8_t unknown1
 120 = 0m/3s More...
 
uint8_t gps_num_sat
 GPS.Satellites (number of satellites) (1 byte) More...
 
uint8_t gps_fix_char
 GPS.FixChar. More...
 
uint8_t home_direction
 HomeDirection (direction from starting point to Model position) (1 byte) More...
 
uint8_t angle_x_direction
 angle x-direction (1 byte) More...
 
uint8_t angle_y_direction
 angle y-direction (1 byte) More...
 
uint8_t angle_z_direction
 angle z-direction (1 byte) More...
 
uint8_t gyro_x_L
 gyro x low byte (2 bytes) More...
 
uint8_t gyro_x_H
 gyro x high byte More...
 
uint8_t gyro_y_L
 gyro y low byte (2 bytes) More...
 
uint8_t gyro_y_H
 gyro y high byte More...
 
uint8_t gyro_z_L
 gyro z low byte (2 bytes) More...
 
uint8_t gyro_z_H
 gyro z high byte More...
 
uint8_t vibration
 vibration (1 bytes) More...
 
uint8_t ascii4
 00 ASCII Free Character [4] More...
 
uint8_t ascii5
 00 ASCII Free Character [5] More...
 
uint8_t gps_fix
 00 ASCII Free Character [6], we use it for GPS FIX More...
 
uint8_t version
 
uint8_t stop
 Stop byte. More...
 
uint8_t checksum
 Lower 8-bits of all bytes summed. More...
 

Detailed Description

The GPS sensor message Struct based on: https://code.google.com/p/diy-hott-gps/downloads.

Definition at line 188 of file messages.h.

Member Data Documentation

◆ alarm_inverse1

uint8_t gps_module_msg::alarm_inverse1

01 inverse status

Definition at line 193 of file messages.h.

◆ alarm_inverse2

uint8_t gps_module_msg::alarm_inverse2

00 inverse status status 1 = no GPS Signal

Definition at line 194 of file messages.h.

◆ altitude_H

uint8_t gps_module_msg::altitude_H

001 1 = /Altitude high byte

Definition at line 214 of file messages.h.

Referenced by build_gps_response().

◆ altitude_L

uint8_t gps_module_msg::altitude_L

243 244 = /Altitude low byte 500 = 0m

Definition at line 213 of file messages.h.

Referenced by build_gps_response().

◆ angle_x_direction

uint8_t gps_module_msg::angle_x_direction

angle x-direction (1 byte)

Definition at line 221 of file messages.h.

◆ angle_y_direction

uint8_t gps_module_msg::angle_y_direction

angle y-direction (1 byte)

Definition at line 222 of file messages.h.

◆ angle_z_direction

uint8_t gps_module_msg::angle_z_direction

angle z-direction (1 byte)

Definition at line 223 of file messages.h.

◆ ascii4

uint8_t gps_module_msg::ascii4

00 ASCII Free Character [4]

Definition at line 231 of file messages.h.

◆ ascii5

uint8_t gps_module_msg::ascii5

00 ASCII Free Character [5]

Definition at line 232 of file messages.h.

◆ checksum

uint8_t gps_module_msg::checksum

Lower 8-bits of all bytes summed.

Definition at line 236 of file messages.h.

◆ distance_H

uint8_t gps_module_msg::distance_H

036 35 = /distance high byte

Definition at line 212 of file messages.h.

Referenced by build_gps_response().

◆ distance_L

uint8_t gps_module_msg::distance_L

027 123 = /distance low byte 6 = 6 m

Definition at line 211 of file messages.h.

Referenced by build_gps_response().

◆ flight_direction

uint8_t gps_module_msg::flight_direction

119 = Flightdir.

/dir. 1 = 2°; 0° (North), 9 0° (East), 180° (South), 270° (West)

Definition at line 195 of file messages.h.

Referenced by build_gps_response().

◆ gps_fix

uint8_t gps_module_msg::gps_fix

00 ASCII Free Character [6], we use it for GPS FIX

Definition at line 233 of file messages.h.

Referenced by build_gps_response().

◆ gps_fix_char

uint8_t gps_module_msg::gps_fix_char

GPS.FixChar.

(GPS fix character. display, if DGPS, 2D oder 3D) (1 byte)

Definition at line 219 of file messages.h.

Referenced by build_gps_response().

◆ gps_num_sat

uint8_t gps_module_msg::gps_num_sat

GPS.Satellites (number of satellites) (1 byte)

Definition at line 218 of file messages.h.

Referenced by build_gps_response().

◆ gps_speed_H

uint8_t gps_module_msg::gps_speed_H

0 = /GPS speed high byte

Definition at line 197 of file messages.h.

Referenced by build_gps_response().

◆ gps_speed_L

uint8_t gps_module_msg::gps_speed_L

8 = /GPS speed low byte 8km/h

Definition at line 196 of file messages.h.

Referenced by build_gps_response().

◆ gyro_x_H

uint8_t gps_module_msg::gyro_x_H

gyro x high byte

Definition at line 225 of file messages.h.

◆ gyro_x_L

uint8_t gps_module_msg::gyro_x_L

gyro x low byte (2 bytes)

Definition at line 224 of file messages.h.

◆ gyro_y_H

uint8_t gps_module_msg::gyro_y_H

gyro y high byte

Definition at line 227 of file messages.h.

◆ gyro_y_L

uint8_t gps_module_msg::gyro_y_L

gyro y low byte (2 bytes)

Definition at line 226 of file messages.h.

◆ gyro_z_H

uint8_t gps_module_msg::gyro_z_H

gyro z high byte

Definition at line 229 of file messages.h.

◆ gyro_z_L

uint8_t gps_module_msg::gyro_z_L

gyro z low byte (2 bytes)

Definition at line 228 of file messages.h.

◆ home_direction

uint8_t gps_module_msg::home_direction

HomeDirection (direction from starting point to Model position) (1 byte)

Definition at line 220 of file messages.h.

Referenced by build_gps_response().

◆ latitude_min_H

uint8_t gps_module_msg::latitude_min_H

018 18 = 0x12

Definition at line 201 of file messages.h.

Referenced by build_gps_response().

◆ latitude_min_L

uint8_t gps_module_msg::latitude_min_L

231 0xE7 = 0x12E7 = 4839

Definition at line 200 of file messages.h.

Referenced by build_gps_response().

◆ latitude_ns

uint8_t gps_module_msg::latitude_ns

000 = N = 48°39’988

Definition at line 199 of file messages.h.

Referenced by build_gps_response().

◆ latitude_sec_H

uint8_t gps_module_msg::latitude_sec_H

016 3 = 0x03

Definition at line 203 of file messages.h.

Referenced by build_gps_response().

◆ latitude_sec_L

uint8_t gps_module_msg::latitude_sec_L

171 220 = 0xDC = 0x03DC =0988

Definition at line 202 of file messages.h.

Referenced by build_gps_response().

◆ longitude_ew

uint8_t gps_module_msg::longitude_ew

000 = E= 9° 25’9360

Definition at line 205 of file messages.h.

Referenced by build_gps_response().

◆ longitude_min_H

uint8_t gps_module_msg::longitude_min_H

003 3 = 0x03

Definition at line 207 of file messages.h.

Referenced by build_gps_response().

◆ longitude_min_L

uint8_t gps_module_msg::longitude_min_L

150 157 = 0x9D = 0x039D = 0925

Definition at line 206 of file messages.h.

Referenced by build_gps_response().

◆ longitude_sec_H

uint8_t gps_module_msg::longitude_sec_H

004 36 = 0x24

Definition at line 209 of file messages.h.

Referenced by build_gps_response().

◆ longitude_sec_L

uint8_t gps_module_msg::longitude_sec_L

056 144 = 0x90 0x2490 = 9360

Definition at line 208 of file messages.h.

Referenced by build_gps_response().

◆ resolution_H

uint8_t gps_module_msg::resolution_H

117 = High Byte m/s resolution 0.01m

Definition at line 216 of file messages.h.

◆ resolution_L

uint8_t gps_module_msg::resolution_L

48 = Low Byte m/s resolution 0.01m 48 = 30000 = 0.00m/s (1=0.01m/s)

Definition at line 215 of file messages.h.

◆ sensor_id

uint8_t gps_module_msg::sensor_id

GPS sensor ID.

Definition at line 190 of file messages.h.

Referenced by build_gps_response().

◆ sensor_text_id

uint8_t gps_module_msg::sensor_text_id

GPS Sensor text mode ID.

Definition at line 192 of file messages.h.

Referenced by build_gps_response().

◆ start

uint8_t gps_module_msg::start

Start byte.

Definition at line 189 of file messages.h.

Referenced by build_gps_response().

◆ stop

uint8_t gps_module_msg::stop

Stop byte.

Definition at line 235 of file messages.h.

Referenced by build_gps_response().

◆ unknown1

uint8_t gps_module_msg::unknown1

120 = 0m/3s

Definition at line 217 of file messages.h.

◆ version

uint8_t gps_module_msg::version

Definition at line 234 of file messages.h.

◆ vibration

uint8_t gps_module_msg::vibration

vibration (1 bytes)

Definition at line 230 of file messages.h.

◆ warning

uint8_t gps_module_msg::warning

0…= warning beeps

Definition at line 191 of file messages.h.


The documentation for this struct was generated from the following file: