mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
autotest: test guided attitude control with no GPS
This commit is contained in:
parent
470663b30b
commit
47625e693e
@ -5389,6 +5389,17 @@ class AutoTestPlane(vehicle_test_suite.TestSuite):
|
||||
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()
|
||||
@ -5499,6 +5510,7 @@ class AutoTestPlane(vehicle_test_suite.TestSuite):
|
||||
self.MAV_CMD_NAV_RETURN_TO_LAUNCH,
|
||||
self.MinThrottle,
|
||||
self.ClimbThrottleSaturation,
|
||||
self.GuidedAttitudeNoGPS,
|
||||
])
|
||||
return ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user