Ke Ao Teensy Flight Software
The software on the Teensy in the Ke Ao cubesat.
|
The GPS beacon structure. More...
#include <artemis_devices.h>
Public Attributes | |
BeaconType | type = BeaconType::GPSBeacon |
The type of the beacon. | |
uint32_t | deci = 0 |
A decimal identifier for the beacon. | |
float | latitude = 0 |
The latitude reading in decimal degrees. | |
float | longitude = 0 |
The longitude reading in decimal degrees. | |
float | speed = 0 |
The ground speed reading, in knots. | |
float | angle = 0 |
The course from true north in degrees. | |
float | altitude = 0 |
The altitude reading in meters above Mean Sea Level. | |
uint8_t | satellites = 0 |
The number of satellites in use. | |
bool | fix = false |
Whether a GPS fix has been achieved. | |
uint8_t | fixquality = 0 |
The quality of the GPS fix. | |
uint8_t | year = 0 |
GMT year. | |
uint8_t | month = 0 |
GMT month. | |
uint8_t | day = 0 |
GMT day. | |
uint8_t | hour = 0 |
GMT hour. | |
uint8_t | minute = 0 |
GMT minute. | |
uint8_t | second = 0 |
GMT second. | |
uint16_t | millisecond = 0 |
GMT millisecond. | |
The GPS beacon structure.
This defines the structure of the GPS beacon.
The GPS beacon consists of sixteen members: identifying information for the beacon (type
and deci
), position data (latitude
, longitude
, speed
, angle
, and altitude
), GPS qualtiy data (satellites
, fix
, and fixquality
), and date/time data (year
, month
, day
, hour
, minute
, second
, and millisecond
).A diagram of the struct is included below.
1 byte 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 1 byte +------+-------+----------+-----------+-------+-------+----------+------------+ | type | deci | latitude | longitude | speed | angle | altitude | satellites | +------+-------+----------+-----------+-------+-------+----------+------------+ 1 byte 1 byte 1 byte 1 byte 1 byte 1 byte 1 byte 1 byte +------+------------+------+-------+------+------+--------+--------+ | fix | fixquality | year | month | day | hour | minute | second | +------+------------+------+-------+------+------+--------+--------+ 2 bytes +-------------+ | millisecond | +-------------+
uint32_t Artemis::Devices::GPS::gpsbeacon::deci = 0 |
A decimal identifier for the beacon.
This value is the current uptime of the Teensy in milliseconds.
BeaconType Artemis::Devices::GPS::gpsbeacon::type = BeaconType::GPSBeacon |
The type of the beacon.
The BeaconType of the beacon, which is set to GPSBeacon.