fix(battery_simulator): disable battery sim only if SIM_BAT_DRAIN strictly < 0

This commit is contained in:
Balduin
2026-04-07 09:53:42 +02:00
parent b73d5ff7f6
commit e29e69f36b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ fi
load_mon start
if param greater SIM_BAT_DRAIN 0
if param greater SIM_BAT_DRAIN 0 || param compare SIM_BAT_DRAIN 0
then
battery_simulator start
fi
@@ -6,7 +6,7 @@ parameters:
description:
short: Simulator Battery drain interval
long: |-
Set <= 0 to entirely disable the battery simulator.
Set to -1 to entirely disable the battery simulator.
This is useful when the battery is simulated externally and interfaced with PX4, for example through MAVLink.
type: float
default: 60