|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
A supply's readings, set points, mode and trip state. More...
#include <supply.h>
Data Fields | |
| float | set_v |
| float | set_i |
| float | v |
| float | i |
| float | p |
| supply_mode_t | mode |
| bool | output |
| bool | online |
| bool | modelled |
| uint8_t | ok |
| uint8_t | trip |
| The trip that switched the output off last, as supply_trip_kind_t; kept until the output is switched on again. | |
| uint16_t | samples |
| Readings the supply has taken, modulo 65536: a new count is a new reading, and the same count read again is the same reading. | |
| uint32_t | taken_ms |
| When the panel had this reading, on its millisecond clock: the page read that brought it, or the model's step. | |
| bool | stamped |
| float | v_min |
| float | i_max |
| float | p_max |
| bool | sag_seeded |
| float | charge_mah |
| float | energy_wh |
| uint8_t | counted |
A supply's readings, set points, mode and trip state.
| uint8_t supply_state_t::counted |
BENCH_COUNTED_* from bench_state.h
| float supply_state_t::i |
out of it, A
| supply_mode_t supply_state_t::mode |
off, constant voltage or constant current
| bool supply_state_t::modelled |
the panel's model produced the readings
| uint8_t supply_state_t::ok |
SUPPLY_OK_*
| bool supply_state_t::online |
the supply answers
| bool supply_state_t::output |
the output is switched on
| float supply_state_t::p |
v * i, W
| bool supply_state_t::sag_seeded |
v_min is a reading yet
| uint16_t supply_state_t::samples |
Readings the supply has taken, modulo 65536: a new count is a new reading, and the same count read again is the same reading.
The PD mini's from its page; the model counts its steps.
| float supply_state_t::set_i |
current limit asked for, A
| float supply_state_t::set_v |
asked for, V
| bool supply_state_t::stamped |
taken_ms is set
| uint32_t supply_state_t::taken_ms |
When the panel had this reading, on its millisecond clock: the page read that brought it, or the model's step.
Valid only while stamped is set: 0 is a tick like any other.
| float supply_state_t::v |
at the output, V