Artemis Teensy Flight Software
The software on the Teensy in the Artemis cubesat.
|
The temperature sensors on the satellite. More...
#include <artemis_devices.h>
Classes | |
struct | temperaturebeacon |
The temperature beacon structure. More... | |
Public Member Functions | |
void | setup (void) |
Sets up the satellite's temperature sensors. More... | |
void | read (uint32_t uptime) |
Reads the satellite's temperature sensors. More... | |
Public Attributes | |
std::map< std::string, int > | temp_sensors |
Mapping of temperature sensor names and analog pins. More... | |
The temperature sensors on the satellite.
void Artemis::Devices::TemperatureSensors::read | ( | uint32_t | uptime | ) |
Reads the satellite's temperature sensors.
This method of the TemperatureSensors class reads the temperature sensor values, stores them in a temperaturebeacon, and transmits that beacon to the ground.
The temperature sensors are read as an analog voltage, then converted to a temperature in Celsius. The Teensy's internal temperature sensor is also read.
uptime | The time, in milliseconds, since the Teensy has been powered on. |
void Artemis::Devices::TemperatureSensors::setup | ( | void | ) |
Sets up the satellite's temperature sensors.
This method of the TemperatureSensors class sets up the analog connection to the satellite's temperature sensors.
std::map<std::string, int> Artemis::Devices::TemperatureSensors::temp_sensors |
Mapping of temperature sensor names and analog pins.