Artemis Teensy Flight Software
The software on the Teensy in the Artemis cubesat.
|
The current sensors on the satellite. More...
#include <artemis_devices.h>
Classes | |
struct | currentbeacon1 |
The first current beacon structure. More... | |
struct | currentbeacon2 |
The second current beacon structure. More... | |
Public Member Functions | |
bool | setup (void) |
Sets up the satellite's current sensors. More... | |
void | read (uint32_t uptime) |
Reads the satellite's current sensors. More... | |
Public Attributes | |
std::map< std::string, Adafruit_INA219 * > | current_sensors |
Instantiation and mapping of core sensor objects. More... | |
The current sensors on the satellite.
void Artemis::Devices::CurrentSensors::read | ( | uint32_t | uptime | ) |
Reads the satellite's current sensors.
This method of the CurrentSensors class reads the current sensor values, stores them in two beacons (currentbeacon1 and currentbeacon2), and transmits those beacons to the ground.
uptime | The time, in milliseconds, since the Teensy has been powered on. |
bool Artemis::Devices::CurrentSensors::setup | ( | void | ) |
Sets up the satellite's current sensors.
This method of the CurrentSensors class sets up the I2C connection to the satellite's current sensors.
std::map<std::string, Adafruit_INA219 *> Artemis::Devices::CurrentSensors::current_sensors |
Instantiation and mapping of core sensor objects.
The CurrentSensors class is a wrapper around the [Adafruit INA219 ](https://learn.adafruit.com/adafruit-ina219-current-sensor-breakout) current sensor object.