Skip to content

Commit 7c354e6

Browse files
committed
autotest: move messages into vehicle-specific whitelists
these are actually documented, just not for all vehicles
1 parent a84709d commit 7c354e6

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

Tools/autotest/vehicle_test_suite.py

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3128,18 +3128,9 @@ def LoggerDocumentation_greylist(self):
31283128
"TCLR", # tempcal
31293129
"TEMP", # temperature sensor library
31303130

3131-
"ARHS", # autorotation
3132-
"AROT", # autorotation
3133-
"ARSC", # autorotation
3134-
"ATDH", # heli autotune
3135-
"ATNH", # heli autotune
3136-
"ATSH", # heli autotune
31373131
"CC", # AC_CustomControl
31383132
"FWDT", # quadplane
3139-
"GMB1", # sologimbal
3140-
"GMB2", # sologimbal
31413133
"QBRK", # quadplane
3142-
"SURF", # surface-tracking
31433134
])
31443135

31453136
def LoggerDocumentation_whitelist(self):
@@ -3167,6 +3158,10 @@ def LoggerDocumentation_whitelist(self):
31673158
# documentation (eg. @Path:
31683159
# ../libraries/AP_LandingGear/AP_LandingGear.cpp).
31693160
vinfo_key = self.vehicleinfo_key()
3161+
if vinfo_key != 'ArduPlane' and vinfo_key != 'ArduCopter':
3162+
ret.update([
3163+
"ATUN", # Plane and Copter have ATUN messages
3164+
])
31703165
if vinfo_key != 'ArduPlane':
31713166
ret.update([
31723167
"TECS", # only Plane has TECS
@@ -3176,6 +3171,19 @@ def LoggerDocumentation_whitelist(self):
31763171
"SORC", # soaring is pure magic
31773172
"QBRK", # quadplane
31783173
"FWDT", # quadplane
3174+
"VAR", # variometer only applicable on Plane
3175+
])
3176+
if vinfo_key != 'ArduCopter':
3177+
ret.update([
3178+
"ARHS", # autorotation
3179+
"AROT", # autorotation
3180+
"ARSC", # autorotation
3181+
"ATDH", # heli autotune
3182+
"ATNH", # heli autotune
3183+
"ATSH", # heli autotune
3184+
"GMB1", # sologimbal
3185+
"GMB2", # sologimbal
3186+
"SURF", # surface-tracking
31793187
])
31803188
if vinfo_key == 'ArduCopter':
31813189
ret.update([

0 commit comments

Comments
 (0)