mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AutoTest: Update copter battery failsafe test
This commit is contained in:
parent
8dd55a85cd
commit
69cf009898
@ -427,7 +427,7 @@ class AutoTestCopter(AutoTest):
|
|||||||
self.set_rc(3, 1500)
|
self.set_rc(3, 1500)
|
||||||
|
|
||||||
# enable battery failsafe
|
# enable battery failsafe
|
||||||
self.set_parameter('FS_BATT_ENABLE', 1)
|
self.set_parameter('BATT_FS_LOW_ACT', 1)
|
||||||
|
|
||||||
# trigger low voltage
|
# trigger low voltage
|
||||||
self.set_parameter('SIM_BATT_VOLTAGE', 10)
|
self.set_parameter('SIM_BATT_VOLTAGE', 10)
|
||||||
@ -438,7 +438,7 @@ class AutoTestCopter(AutoTest):
|
|||||||
success = True
|
success = True
|
||||||
|
|
||||||
# disable battery failsafe
|
# disable battery failsafe
|
||||||
self.set_parameter('FS_BATT_ENABLE', 0)
|
self.set_parameter('BATT_FS_LOW_ACT', 0)
|
||||||
|
|
||||||
# return status
|
# return status
|
||||||
if success:
|
if success:
|
||||||
|
Loading…
Reference in New Issue
Block a user