mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
- system_power portion of drivers/adc split into a new standalone module (drivers/system_power) - additional availability flags added to system_power.msg so we know what boards even support (previously certain flags were faked if not available) - drivers/system_power scheduled at minimum rate by default, but now also scheduled immediately on any relevant GPIO events - now instead of running at 100 Hz with heavily reduced logging we can run at a minimal rate, log at full rate, and catch relevant changes immediately
9 lines
535 B
Plaintext
9 lines
535 B
Plaintext
uint64 timestamp # time since system start (microseconds)
|
|
uint32 device_id # unique device ID for the sensor that does not change between power cycles
|
|
int16[12] channel_id # ADC channel IDs, negative for non-existent, TODO: should be kept same as array index
|
|
int32[12] raw_data # ADC channel raw value, accept negative value, valid if channel ID is positive
|
|
uint32 resolution # ADC channel resolution
|
|
float32 v_ref # ADC channel voltage reference, use to calculate LSB voltage(lsb=scale/resolution)
|
|
|
|
uint8 MAX_ADC_CHANNELS = 12
|