Ke Ao Teensy Flight Software
The software on the Teensy in the Ke Ao cubesat.
|
The second current beacon structure. More...
#include <artemis_devices.h>
Public Attributes | |
BeaconType | type = BeaconType::CurrentBeacon2 |
The type of the beacon. | |
uint32_t | deci = 0 |
A decimal identifier for the beacon. | |
float | busvoltage [ARTEMIS_CURRENT_SENSOR_COUNT - ARTEMIS_CURRENT_BEACON_1_COUNT] |
The voltage data. | |
float | current [ARTEMIS_CURRENT_SENSOR_COUNT - ARTEMIS_CURRENT_BEACON_1_COUNT] |
The current data. | |
The second current beacon structure.
This defines the structure of the second current beacon.
The second current beacon consists of four members: the type of beacon (type
), the decimal identifier (deci
), the voltage data (busvoltage
[]), and current data (current
[]).A diagram of the struct is included below.
1 byte 4 bytes 4*X bytes 4*X bytes +------+-------+--------------+-----------+ | type | deci | busvoltage[] | current[] | +------+-------+--------------+-----------+ (Note: X = ARTEMIS_CURRENT_SENSOR_COUNT - ARTEMIS_CURRENT_BEACON_1_COUNT)
float Artemis::Devices::CurrentSensors::currentbeacon2::busvoltage[ARTEMIS_CURRENT_SENSOR_COUNT - ARTEMIS_CURRENT_BEACON_1_COUNT] |
The voltage data.
The bus voltage values are stored as an array of floating-point values. The length of the array is defined by the ARTEMIS_CURRENT_SENSOR_COUNT and ARTEMIS_CURRENT_BEACON_1_COUNT constants. Specifically, this beacon holds the remainder of any measurements not already held in the first current beacon.
float Artemis::Devices::CurrentSensors::currentbeacon2::current[ARTEMIS_CURRENT_SENSOR_COUNT - ARTEMIS_CURRENT_BEACON_1_COUNT] |
The current data.
The current values are stored as an array of floating-point values. The length of the array is defined by the ARTEMIS_CURRENT_SENSOR_COUNT and ARTEMIS_CURRENT_BEACON_1_COUNT constants. Specifically, this beacon holds the remainder of any measurements not already held in the first current beacon.
uint32_t Artemis::Devices::CurrentSensors::currentbeacon2::deci = 0 |
A decimal identifier for the beacon.
This value is the current uptime of the Teensy in milliseconds. By default, it is zero.
BeaconType Artemis::Devices::CurrentSensors::currentbeacon2::type = BeaconType::CurrentBeacon2 |
The type of the beacon.
The BeaconType of the beacon, which is set to CurrentBeacon2.