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

Telemetry packet. More...

#include <st24.h>

Collaboration diagram for TelemetryData:

Public Attributes

uint16_t t
 packet counter or clock More...
 
int32_t lat
 lattitude (degrees) +/- 90 deg More...
 
int32_t lon
 longitude (degrees) +/- 180 deg More...
 
int32_t alt
 0.01m resolution, altitude (meters) More...
 
int16_t vx
 
int16_t vy
 
int16_t vz
 velocity 0.01m res, +/-320.00 North-East- Down More...
 
uint8_t nsat
 number of satellites More...
 
uint8_t voltage
 25.4V voltage = 5 + 255*0.1 = 30.5V, min=5V More...
 
uint8_t current
 0.5A resolution More...
 
int16_t roll
 
int16_t pitch
 
int16_t yaw
 0.01 degree resolution More...
 
uint8_t motorStatus
 1 bit per motor for status 1=good, 0= fail More...
 
uint8_t imuStatus
 inertial measurement unit status More...
 
uint8_t pressCompassStatus
 baro / compass status More...
 

Detailed Description

Telemetry packet.

This is outgoing to the ST24

imuStatus: 8 bit total bits 0-2 for status

  • value 0 is FAILED
  • value 1 is INITIALIZING
  • value 2 is RUNNING
  • values 3 through 7 are reserved bits 3-7 are status for sensors (0 or 1)
  • mpu6050
  • accelerometer
  • primary gyro x
  • primary gyro y
  • primary gyro z

pressCompassStatus 8 bit total bits 0-3 for compass status

  • value 0 is FAILED
  • value 1 is INITIALIZING
  • value 2 is RUNNING
  • value 3 - 15 are reserved bits 4-7 for pressure status
  • value 0 is FAILED
  • value 1 is INITIALIZING
  • value 2 is RUNNING
  • value 3 - 15 are reserved

Definition at line 133 of file st24.h.

Member Data Documentation

◆ alt

int32_t TelemetryData::alt

0.01m resolution, altitude (meters)

Definition at line 137 of file st24.h.

◆ current

uint8_t TelemetryData::current

0.5A resolution

Definition at line 141 of file st24.h.

◆ imuStatus

uint8_t TelemetryData::imuStatus

inertial measurement unit status

Definition at line 144 of file st24.h.

◆ lat

int32_t TelemetryData::lat

lattitude (degrees) +/- 90 deg

Definition at line 135 of file st24.h.

◆ lon

int32_t TelemetryData::lon

longitude (degrees) +/- 180 deg

Definition at line 136 of file st24.h.

◆ motorStatus

uint8_t TelemetryData::motorStatus

1 bit per motor for status 1=good, 0= fail

Definition at line 143 of file st24.h.

◆ nsat

uint8_t TelemetryData::nsat

number of satellites

Definition at line 139 of file st24.h.

◆ pitch

int16_t TelemetryData::pitch

Definition at line 142 of file st24.h.

◆ pressCompassStatus

uint8_t TelemetryData::pressCompassStatus

baro / compass status

Definition at line 145 of file st24.h.

◆ roll

int16_t TelemetryData::roll

Definition at line 142 of file st24.h.

◆ t

uint16_t TelemetryData::t

packet counter or clock

Definition at line 134 of file st24.h.

◆ voltage

uint8_t TelemetryData::voltage

25.4V voltage = 5 + 255*0.1 = 30.5V, min=5V

Definition at line 140 of file st24.h.

◆ vx

int16_t TelemetryData::vx

Definition at line 138 of file st24.h.

◆ vy

int16_t TelemetryData::vy

Definition at line 138 of file st24.h.

◆ vz

int16_t TelemetryData::vz

velocity 0.01m res, +/-320.00 North-East- Down

Definition at line 138 of file st24.h.

◆ yaw

int16_t TelemetryData::yaw

0.01 degree resolution

Definition at line 142 of file st24.h.


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