Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

The sensor power module is responsible for taking telemetry from the environment, logging it to storage and reporting those measurements to other modules.  distributing power to the rest of the backplane and therefore requires little software for successful operation. However, power distribution can be monitored and provide valuable insight into the backplane's behaviors.   

This page reflects the software design for the second revision of the sensor module

Data

NameDataTypeSize (bytes)Sample Rate (Hz)
INA219 (3v3)

Voltage

Power

Current

float

float

float

32

32

32

15
INA219 (5v0)

Voltage

Power

Current

float

float

float

32

32

32

15
INA219 (BATT)

Voltage

Power

Current

float

float

float

32

32

32

15


*** If I did my math right, 15 hertz assuming a default 12-bit resolution for the INA219s.

NameDataTypeSize (bytes)Sample Rate
VIN VoltageVoltageint1650

*** Need to determine good sample rate for the ADC (Consult James)

Tasks

NameResponsibilityPriority
INA219 TelemetryRead in
values from the
INA219 data and queue the data for processingHigh
Ethernet Transmit
INA219 Processing
Transmit telemetry to other modulesMediumData Logging Log sensor telemetry
Process telemetry, log it and send it over EthernetMedium
ADC TelemetryRead in STM32 ADC valuesHigh
ADC ProcessingProcess ADC telemetry, log it and send it over EthernetMedium


Callbacks

NameResponsibility
Ethernet ReceiveReceive notification packet to toggling logging between liftoff and landing