Skip to content

Commit

Permalink
autotest: test guided attitude control with no GPS
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jun 10, 2024
1 parent 7cf96fb commit 09de062
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tools/autotest/arduplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -5389,6 +5389,17 @@ def ClimbThrottleSaturation(self):
self.disarm_vehicle(force=True)
self.reboot_sitl()

def GuidedAttitudeNoGPS(self):
'''test that guided-attitude still works with no GPS'''
self.takeoff(50)
self.change_mode('GUIDED')
self.context_push()
self.set_parameter('SIM_GPS_DISABLE', 1)
self.delay_sim_time(30)
self.set_attitude_target()
self.context_pop()
self.fly_home_land_and_disarm()

def tests(self):
'''return list of all tests'''
ret = super(AutoTestPlane, self).tests()
Expand Down Expand Up @@ -5499,6 +5510,7 @@ def tests(self):
self.MAV_CMD_NAV_RETURN_TO_LAUNCH,
self.MinThrottle,
self.ClimbThrottleSaturation,
self.GuidedAttitudeNoGPS,
])
return ret

Expand Down

0 comments on commit 09de062

Please sign in to comment.