autotest: add trivial test for Callisto

This commit is contained in:
Peter Barker 2020-12-11 10:26:14 +11:00 committed by Peter Barker
parent 792eeca863
commit 0788b46374
2 changed files with 16 additions and 0 deletions

View File

@ -5616,6 +5616,16 @@ class AutoTestCopter(AutoTest):
print("log difference: %s" % str(log_difference))
return log_difference[0]
def test_callisto(self):
self.customise_SITL_commandline([
"--defaults", self.model_defaults_filepath('ArduCopter', 'Callisto')
],
model="octa-quad:@ROMFS/models/Callisto.json",
wipe=True,
)
self.takeoff(10)
self.do_RTL()
def test_replay(self):
'''test replay correctness'''
self.progress("Building Replay")
@ -6015,6 +6025,10 @@ class AutoTestCopter(AutoTest):
"Test DataFlash Block backend erase",
self.test_dataflash_erase),
("Callisto",
"Test Callisto",
self.test_callisto),
("Replay",
"Test Replay",
self.test_replay),

View File

@ -4639,6 +4639,8 @@ Also, ignores heartbeats not from our target system'''
def send_statustext(self, text):
if sys.version_info.major >= 3 and not isinstance(text, bytes):
text = bytes(text, "ascii")
elif type(text) == unicode:
text = text.encode('ascii')
self.mav.mav.statustext_send(mavutil.mavlink.MAV_SEVERITY_WARNING, text)
def get_exception_stacktrace(self, e):