![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
Manages multiple temperature sensors for monitoring and alerting. More...
#include <temperature.hpp>
Public Member Functions | |
| temperature (bsp::i2c &i2c, bsp::gpio &alert_t_pa_uhf, bsp::gpio &alert_t_pa_sband, const rf_frontend09 &rf09, const rf_frontend24 &rf24) | |
| float | get () const |
| Retrieve the average board temperature. | |
| float | get (temperature_sensor s) const |
| Returns the temperature from a specific sensor. | |
| bool | alert () const |
| Checks if any temperature sensor has triggered an alert. | |
| bool | alert (temperature_sensor s) const |
| Checks if a specific temperature sensor has triggered an alert. | |
| float | get (temperature_sensor s) const |
| bool | alert (temperature_sensor s) const |
Manages multiple temperature sensors for monitoring and alerting.
The temperature class interfaces with multiple temperature sensors to monitor temperatures for various components, including PCB, UHF PA, and S-Band PA. It provides methods for retrieving temperatures and handling alerts.
| T | The type of temperature sensor (For the time being only emc1702 is supported). |
Definition at line 74 of file temperature.hpp.
|
inline |
Definition at line 77 of file temperature.hpp.
|
inline |
Checks if any temperature sensor has triggered an alert.
Definition at line 128 of file temperature.hpp.
| bool satnogs::comms::lib::temperature< T >::alert | ( | temperature_sensor | s | ) | const |
Checks if a specific temperature sensor has triggered an alert.
| s | The sensor to check for an alert condition. |
| invalid_sensor_exception | if the specified sensor is invalid. |
| bool satnogs::comms::lib::temperature< emc1702 >::alert | ( | temperature_sensor | s | ) | const |
Definition at line 29 of file temperature.cpp.
|
inline |
Retrieve the average board temperature.
Definition at line 105 of file temperature.hpp.
| float satnogs::comms::lib::temperature< T >::get | ( | temperature_sensor | s | ) | const |
Returns the temperature from a specific sensor.
| s | the target sensor |
| invalid_sensor_exception | if the specified sensor is invalid. |
| float satnogs::comms::lib::temperature< emc1702 >::get | ( | temperature_sensor | s | ) | const |
Definition at line 9 of file temperature.cpp.