Skip to content

Commit

Permalink
Tools: add option to require position for Rover before arming
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Feb 4, 2025
1 parent 68d7f79 commit 7db9428
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tools/autotest/rover.py
Original file line number Diff line number Diff line change
Expand Up @@ -6947,7 +6947,7 @@ def SDPolyFence(self):

self.delay_sim_time(1000)

def REQUIRE_POSITION_FOR_ARMING(self):
def REQUIRE_LOCATION_FOR_ARMING(self):
'''check DriveOption::REQUIRE_POSITION_FOR_ARMING works'''
self.context_push()
self.set_parameters({
Expand All @@ -6966,7 +6966,7 @@ def REQUIRE_POSITION_FOR_ARMING(self):

self.change_mode('MANUAL')
self.set_parameters({
"DRIVE_OPTIONS": 1,
"ARMING_NEED_LOC": 1,
})
self.assert_prearm_failure("waiting for home", other_prearm_failures_fatal=False)
self.context_pop()
Expand Down Expand Up @@ -7070,7 +7070,7 @@ def tests(self):
self.ClearMission,
self.JammingSimulation,
self.BatteryInvalid,
self.REQUIRE_POSITION_FOR_ARMING,
self.REQUIRE_LOCATION_FOR_ARMING,
])
return ret

Expand Down

0 comments on commit 7db9428

Please sign in to comment.