|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
One supply sample. seq is the supply's count of its own readings, modulo 65536 (supply_state_t's samples): it moves when the reading is new, and a step of more than one is a reading the panel never saw. at_ms is when the panel first had the reading (taken_ms), so a supply whose count stops is a supply whose readings stop, however often the panel reads its page.
More...
#include <esc_stick.h>
Data Fields | |
| uint32_t | seq |
| uint32_t | at_ms |
| int32_t | ma |
| bool | current_ok |
| bool | output |
| bool | reported_on |
| bool | online |
One supply sample. seq is the supply's count of its own readings, modulo 65536 (supply_state_t's samples): it moves when the reading is new, and a step of more than one is a reading the panel never saw. at_ms is when the panel first had the reading (taken_ms), so a supply whose count stops is a supply whose readings stop, however often the panel reads its page.
| uint32_t esc_stick_sample_t::at_ms |
when the reading was taken
| bool esc_stick_sample_t::current_ok |
the current was read
| int32_t esc_stick_sample_t::ma |
supply current, mA
| bool esc_stick_sample_t::online |
the supply answers
| bool esc_stick_sample_t::output |
the panel has the output on: its request
| bool esc_stick_sample_t::reported_on |
the supply itself reports it on: what the module read, not what was asked