autotest: add test for receiving base messages

This commit is contained in:
Peter Barker 2024-01-07 12:30:38 +11:00 committed by Tom Pittenger
parent 77afdf1539
commit 5acf58c310
1 changed files with 8 additions and 0 deletions

View File

@ -162,6 +162,13 @@ class AutoTestTracker(vehicle_test_suite.TestSuite):
timeout=90,
comparator=operator.le)
def BaseMessageSet(self):
'''ensure we're getting messages we expect'''
self.set_parameter('BATT_MONITOR', 4)
self.reboot_sitl()
for msg in 'BATTERY_STATUS', :
self.assert_receive_message(msg)
def disabled_tests(self):
return {
"ArmFeatures": "See https://github.com/ArduPilot/ardupilot/issues/10652",
@ -178,5 +185,6 @@ class AutoTestTracker(vehicle_test_suite.TestSuite):
self.MAV_CMD_MISSION_START,
self.NMEAOutput,
self.SCAN,
self.BaseMessageSet,
])
return ret