|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
One 50ms window of INA3221 CH1, as SERVO_WIN carries it. More...
#include <sense_link.h>
Data Fields | |
| uint16_t | number |
| bool | current |
| bool | voltage |
| bool | clip_hi |
| bool | clip_lo |
| uint8_t | clipped |
| int16_t | mean_ma |
| int16_t | max_ma |
| int16_t | min_ma |
| uint16_t | mean_mv |
| uint16_t | min_mv |
| uint32_t | taken_ms |
| The latest the window can have closed, on the panel's tick: when the panel had the read that brought it, less SENSE_LINK_WINDOW_MS for each window that closed after it and came in the same read. | |
| bool | stamped |
One 50ms window of INA3221 CH1, as SERVO_WIN carries it.
A clipped sample counts in the three currents at the end of the range it read.
| bool sense_link_win_t::clip_hi |
a sample read the top of the range
| bool sense_link_win_t::clip_lo |
a sample read the bottom
| uint8_t sense_link_win_t::clipped |
samples at an end, held at 255
| bool sense_link_win_t::current |
it holds current samples
| int16_t sense_link_win_t::max_ma |
the highest sample, mA, signed
| int16_t sense_link_win_t::mean_ma |
mA, signed
| uint16_t sense_link_win_t::mean_mv |
bus voltage at the load side of the shunt
| int16_t sense_link_win_t::min_ma |
the lowest sample, mA, signed
| uint16_t sense_link_win_t::min_mv |
the lowest bus voltage sample, mV
| uint16_t sense_link_win_t::number |
the window's, modulo 65536
| bool sense_link_win_t::stamped |
taken_ms is set; 0 is a tick like any other
| uint32_t sense_link_win_t::taken_ms |
The latest the window can have closed, on the panel's tick: when the panel had the read that brought it, less SENSE_LINK_WINDOW_MS for each window that closed after it and came in the same read.
The windows of one read are 50ms apart, oldest first.
| bool sense_link_win_t::voltage |
it holds bus voltage samples