Power Module Software Design
Introduction
The power module is responsible for 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
Name | Data | Type | Size (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.
Name | Data | Type | Size (bytes) | Sample Rate |
---|---|---|---|---|
VIN Voltage | Voltage | int | 16 | 50 |
*** Need to determine good sample rate for the ADC (Consult James)
Tasks
Name | Responsibility | Priority |
---|---|---|
INA219 Telemetry | Read in INA219 data and queue the data for processing | High |
INA219 Processing | Process telemetry, log it and send it over Ethernet | Medium |
ADC Telemetry | Read in STM32 ADC values | High |
ADC Processing | Process ADC telemetry, log it and send it over Ethernet | Medium |
Callbacks
Name | Responsibility |
---|---|
Ethernet Receive | Receive notification packet to toggling logging between liftoff and landing |