Artemis Teensy Flight Software
The software on the Teensy in the Artemis cubesat.
Artemis::Devices::TemperatureSensors Class Reference

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...
 

Detailed Description

The temperature sensors on the satellite.

Member Function Documentation

◆ read()

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.

Parameters
uptimeThe time, in milliseconds, since the Teensy has been powered on.

◆ setup()

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.

Member Data Documentation

◆ temp_sensors

std::map<std::string, int> Artemis::Devices::TemperatureSensors::temp_sensors
Initial value:
= {
{ "obc", A0},
{ "pdu", A1},
{"battery_board", A6},
{"solar_panel_1", A7},
{"solar_panel_2", A8},
{"solar_panel_3", A9},
{"solar_panel_4", A17},
}

Mapping of temperature sensor names and analog pins.


The documentation for this class was generated from the following files: