1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-16 12:55:16 +03:00

Update Docs to correct LC VBAT scale

This commit is contained in:
Pawel Spychalski (DzikuVx) 2021-03-05 10:01:17 +01:00
parent 7c9d3a6058
commit 0e92194239
2 changed files with 3 additions and 3 deletions

View file

@ -95,8 +95,8 @@ IPF can be edited using INAV Configurator user interface, of via CLI
| 1 | HOME_DISTANCE | in `meters` | | 1 | HOME_DISTANCE | in `meters` |
| 2 | TRIP_DISTANCE | in `meters` | | 2 | TRIP_DISTANCE | in `meters` |
| 3 | RSSI | | | 3 | RSSI | |
| 4 | VBAT | in `Volts * 10`, eg. `12.1V` is `121` | | 4 | VBAT | in `Volts * 100`, eg. `12.1V` is `1210` |
| 5 | CELL_VOLTAGE | in `Volts * 10`, eg. `12.1V` is `121` | | 5 | CELL_VOLTAGE | in `Volts * 100`, eg. `12.1V` is `1210` |
| 6 | CURRENT | in `Amps * 100`, eg. `9A` is `900` | | 6 | CURRENT | in `Amps * 100`, eg. `9A` is `900` |
| 7 | MAH_DRAWN | in `mAh` | | 7 | MAH_DRAWN | in `mAh` |
| 8 | GPS_SATS | | | 8 | GPS_SATS | |

View file

@ -384,7 +384,7 @@ static int logicConditionGetFlightOperandValue(int operand) {
return constrain(getRSSI() * 100 / RSSI_MAX_VALUE, 0, 99); return constrain(getRSSI() * 100 / RSSI_MAX_VALUE, 0, 99);
break; break;
case LOGIC_CONDITION_OPERAND_FLIGHT_VBAT: // V / 10 case LOGIC_CONDITION_OPERAND_FLIGHT_VBAT: // V / 100
return getBatteryVoltage(); return getBatteryVoltage();
break; break;