File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -11414,6 +11414,20 @@ def check_altitude(mav, m):
11414
11414
self .context_pop ()
11415
11415
self .reboot_sitl (force = True )
11416
11416
11417
+ def GuidedWeatherVane (self ):
11418
+ '''check Copter Guided mode weathervane option'''
11419
+ self .set_parameters ({
11420
+ 'SIM_WIND_SPD' : 10 ,
11421
+ 'SIM_WIND_DIR' : 90 ,
11422
+ 'WVANE_ENABLE' : 1 ,
11423
+ })
11424
+ self .takeoff (20 , mode = 'GUIDED' )
11425
+ self .guided_achieve_heading (0 )
11426
+
11427
+ self .set_parameter ("GUID_OPTIONS" , 128 )
11428
+ self .wait_heading (90 , timeout = 60 , minimum_duration = 10 )
11429
+ self .do_RTL ()
11430
+
11417
11431
def tests2b (self ): # this block currently around 9.5mins here
11418
11432
'''return list of all tests'''
11419
11433
ret = ([
@@ -11502,6 +11516,7 @@ def tests2b(self): # this block currently around 9.5mins here
11502
11516
self .EK3_OGN_HGT_MASK ,
11503
11517
self .FarOrigin ,
11504
11518
self .GuidedForceArm ,
11519
+ self .GuidedWeatherVane
11505
11520
])
11506
11521
return ret
11507
11522
You can’t perform that action at this time.
0 commit comments