Skip to content

Commit

Permalink
AutoTest: Update copter battery failsafe test
Browse files Browse the repository at this point in the history
  • Loading branch information
WickedShell committed Mar 26, 2018
1 parent 0b9270c commit 320010a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def fly_battery_failsafe(self, timeout=30):
self.set_rc(3, 1500)

# enable battery failsafe
self.set_parameter('FS_BATT_ENABLE', 1)
self.set_parameter('BATT_FS_LOW_ACT', 1)

# trigger low voltage
self.set_parameter('SIM_BATT_VOLTAGE', 10)
Expand All @@ -438,7 +438,7 @@ def fly_battery_failsafe(self, timeout=30):
success = True

# disable battery failsafe
self.set_parameter('FS_BATT_ENABLE', 0)
self.set_parameter('BATT_FS_LOW_ACT', 0)

# return status
if success:
Expand Down

0 comments on commit 320010a

Please sign in to comment.