1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 17:55:30 +03:00

current sensor support added

also optimized the vbat code a bit
This commit is contained in:
luggi 2014-05-29 02:57:01 +02:00
parent d050c7df0c
commit 5cc9750d12
8 changed files with 52 additions and 15 deletions

View file

@ -141,6 +141,9 @@ const clivalue_t valueTable[] = {
{ "telemetry_port", VAR_UINT8, &mcfg.telemetry_port, 0, TELEMETRY_PORT_MAX },
{ "telemetry_switch", VAR_UINT8, &mcfg.telemetry_switch, 0, 1 },
{ "vbatscale", VAR_UINT8, &mcfg.vbatscale, 10, 200 },
{ "currentscale", VAR_UINT16, &mcfg.currentscale, 1, 10000 },
{ "currentoffset", VAR_UINT16, &mcfg.currentoffset, 0, 1650 },
{ "multiwiicurrentoutput", VAR_UINT8, &mcfg.multiwiicurrentoutput, 0, 1 },
{ "vbatmaxcellvoltage", VAR_UINT8, &mcfg.vbatmaxcellvoltage, 10, 50 },
{ "vbatmincellvoltage", VAR_UINT8, &mcfg.vbatmincellvoltage, 10, 50 },
{ "power_adc_channel", VAR_UINT8, &mcfg.power_adc_channel, 0, 9 },