File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -5389,6 +5389,17 @@ def ClimbThrottleSaturation(self):
5389
5389
self .disarm_vehicle (force = True )
5390
5390
self .reboot_sitl ()
5391
5391
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
+
5392
5403
def tests (self ):
5393
5404
'''return list of all tests'''
5394
5405
ret = super (AutoTestPlane , self ).tests ()
@@ -5499,6 +5510,7 @@ def tests(self):
5499
5510
self .MAV_CMD_NAV_RETURN_TO_LAUNCH ,
5500
5511
self .MinThrottle ,
5501
5512
self .ClimbThrottleSaturation ,
5513
+ self .GuidedAttitudeNoGPS ,
5502
5514
])
5503
5515
return ret
5504
5516
You can’t perform that action at this time.
0 commit comments