Skip to content

Commit b0a474d

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

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

Tools/autotest/vehicle_test_suite.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3128,18 +3128,10 @@ 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
3132+
31383133
"FWDT", # quadplane
3139-
"GMB1", # sologimbal
3140-
"GMB2", # sologimbal
31413134
"QBRK", # quadplane
3142-
"SURF", # surface-tracking
31433135
])
31443136

31453137
def LoggerDocumentation_whitelist(self):
@@ -3167,6 +3159,10 @@ def LoggerDocumentation_whitelist(self):
31673159
# documentation (eg. @Path:
31683160
# ../libraries/AP_LandingGear/AP_LandingGear.cpp).
31693161
vinfo_key = self.vehicleinfo_key()
3162+
if vinfo_key != 'ArduPlane' and vinfo_key != 'ArduCopter':
3163+
ret.update([
3164+
"ATUN", # Plane and Copter have ATUN messages
3165+
])
31703166
if vinfo_key != 'ArduPlane':
31713167
ret.update([
31723168
"TECS", # only Plane has TECS
@@ -3176,6 +3172,19 @@ def LoggerDocumentation_whitelist(self):
31763172
"SORC", # soaring is pure magic
31773173
"QBRK", # quadplane
31783174
"FWDT", # quadplane
3175+
"VAR", # variometer only applicable on Plane
3176+
])
3177+
if vinfo_key != 'ArduCopter':
3178+
ret.update([
3179+
"ARHS", # autorotation
3180+
"AROT", # autorotation
3181+
"ARSC", # autorotation
3182+
"ATDH", # heli autotune
3183+
"ATNH", # heli autotune
3184+
"ATSH", # heli autotune
3185+
"GMB1", # sologimbal
3186+
"GMB2", # sologimbal
3187+
"SURF", # surface-tracking
31793188
])
31803189
if vinfo_key == 'ArduCopter':
31813190
ret.update([

0 commit comments

Comments
 (0)