Skip to content

Commit

Permalink
Tools: move REQUIRE_POSITION_FROM_ARMING bit to AP_arming
Browse files Browse the repository at this point in the history
while Copter is the only user at the moment, will be useful on Rover shortly
  • Loading branch information
peterbarker authored and rmackay9 committed Feb 4, 2025
1 parent 569386c commit 5dc7751
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12253,8 +12253,8 @@ def assert_home_position_not_set(self):

raise NotAchievedException("Home is set when it shouldn't be")

def REQUIRE_POSITION_FOR_ARMING(self):
'''check FlightOption::REQUIRE_POSITION_FOR_ARMING works'''
def REQUIRE_LOCATION_FOR_ARMING(self):
'''check AP_Arming::Option::REQUIRE_LOCATION_FOR_ARMING works'''
self.context_push()
self.set_parameters({
"SIM_GPS1_NUMSATS": 3, # EKF does not like < 6
Expand All @@ -12270,7 +12270,7 @@ def REQUIRE_POSITION_FOR_ARMING(self):

self.change_mode('STABILIZE')
self.set_parameters({
"FLIGHT_OPTIONS": 8,
"ARMING_NEED_LOC": 1,
})
self.assert_prearm_failure("Need Position Estimate", other_prearm_failures_fatal=False)
self.context_pop()
Expand Down Expand Up @@ -12685,7 +12685,7 @@ def tests2b(self): # this block currently around 9.5mins here
self.GuidedWeatherVane,
self.Clamp,
self.GripperReleaseOnThrustLoss,
self.REQUIRE_POSITION_FOR_ARMING,
self.REQUIRE_LOCATION_FOR_ARMING,
self.LoggingFormat,
self.MissionRTLYawBehaviour,
self.BatteryInternalUseOnly,
Expand Down

0 comments on commit 5dc7751

Please sign in to comment.