|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
#include <settings_sensors.h>
Data Fields | |
| uint16_t | regs [LINK_SM_KEPT] |
| uint8_t | parts |
| uint8_t | dark |
| uint8_t | fast |
| uint8_t | mirror |
| bool | one_on |
| SENSE registers 8 to 10 for an IOmcu older than 4.25: the mirror part, its CH1 shunt or its first one not 0, and its channels on that shunt – the frame has one shunt for every channel it reads, so a channel on another shunt is not read. one_on false: no part to read; the frame then holds 0x40, 100.0mOhm and CH1, values the page takes. | |
| uint8_t | one_addr |
| uint16_t | one_dmohm |
| uint8_t | one_ch |
The map the SENSORS rows make, with the frame an older IOmcu takes.
| uint8_t settings_sensors_map_t::dark |
Fitted parts with every shunt 0: the page refuses such a map, so none is written while this is not 0.
| uint8_t settings_sensors_map_t::fast |
the channel read at 1kHz, LINK_SM_FAST_NONE
| uint8_t settings_sensors_map_t::mirror |
The part SENSE's one-part frame names, 0 to 3: FAST's, else the lowest fitted part; 0xFF while none is fitted. On an IOmcu older than 4.25 it is the one part read.
| uint8_t settings_sensors_map_t::parts |
bit a: 0x40 + a fitted
| uint16_t settings_sensors_map_t::regs[LINK_SM_KEPT] |
SENSE_MAP registers 0 to 25 as asked.