Skip to content

Commit 09de062

Browse files
committed
autotest: test guided attitude control with no GPS
1 parent 7cf96fb commit 09de062

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Tools/autotest/arduplane.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5389,6 +5389,17 @@ def ClimbThrottleSaturation(self):
53895389
self.disarm_vehicle(force=True)
53905390
self.reboot_sitl()
53915391

5392+
def GuidedAttitudeNoGPS(self):
5393+
'''test that guided-attitude still works with no GPS'''
5394+
self.takeoff(50)
5395+
self.change_mode('GUIDED')
5396+
self.context_push()
5397+
self.set_parameter('SIM_GPS_DISABLE', 1)
5398+
self.delay_sim_time(30)
5399+
self.set_attitude_target()
5400+
self.context_pop()
5401+
self.fly_home_land_and_disarm()
5402+
53925403
def tests(self):
53935404
'''return list of all tests'''
53945405
ret = super(AutoTestPlane, self).tests()
@@ -5499,6 +5510,7 @@ def tests(self):
54995510
self.MAV_CMD_NAV_RETURN_TO_LAUNCH,
55005511
self.MinThrottle,
55015512
self.ClimbThrottleSaturation,
5513+
self.GuidedAttitudeNoGPS,
55025514
])
55035515
return ret
55045516

0 commit comments

Comments
 (0)