Skip to content

Commit

Permalink
Merge pull request #6676 from iNavFlight/dzikuvx-lc-vbat-dox-fix
Browse files Browse the repository at this point in the history
Update Docs to correct LC VBAT scale
  • Loading branch information
DzikuVx authored Mar 5, 2021
2 parents 9571924 + 0e92194 commit 3c863c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/Programming Framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ IPF can be edited using INAV Configurator user interface, of via CLI
| 1 | HOME_DISTANCE | in `meters` |
| 2 | TRIP_DISTANCE | in `meters` |
| 3 | RSSI | |
| 4 | VBAT | in `Volts * 10`, eg. `12.1V` is `121` |
| 5 | CELL_VOLTAGE | in `Volts * 10`, eg. `12.1V` is `121` |
| 4 | VBAT | in `Volts * 100`, eg. `12.1V` is `1210` |
| 5 | CELL_VOLTAGE | in `Volts * 100`, eg. `12.1V` is `1210` |
| 6 | CURRENT | in `Amps * 100`, eg. `9A` is `900` |
| 7 | MAH_DRAWN | in `mAh` |
| 8 | GPS_SATS | |
Expand Down
2 changes: 1 addition & 1 deletion src/main/programming/logic_condition.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static int logicConditionGetFlightOperandValue(int operand) {
return constrain(getRSSI() * 100 / RSSI_MAX_VALUE, 0, 99);
break;

case LOGIC_CONDITION_OPERAND_FLIGHT_VBAT: // V / 10
case LOGIC_CONDITION_OPERAND_FLIGHT_VBAT: // V / 100
return getBatteryVoltage();
break;

Expand Down

0 comments on commit 3c863c0

Please sign in to comment.