Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mavproxy_misc.py: add configerror_autopilot command #1506

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions MAVProxy/modules/mavproxy_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def __init__(self, mpstate):
self.add_command('hardfault_autopilot', self.cmd_hardfault_autopilot, "hardfault autopilot")
self.add_command('panic_autopilot', self.cmd_panic_autopilot, "panic autopilot")
self.add_command('longloop_autopilot', self.cmd_longloop_autopilot, "cause long loop in autopilot")
self.add_command('configerror_autopilot', self.cmd_config_error_autopilot, "ask autopilot to jump to its config error loop") # noqa:E501
self.add_command('internalerror_autopilot', self.cmd_internalerror_autopilot, "cause internal error in autopilot")
self.add_command('dfu_boot', self.cmd_dfu_boot, "boot into DFU mode")
self.add_command('deadlock', self.cmd_deadlock, "trigger deadlock")
Expand Down Expand Up @@ -260,6 +261,10 @@ def cmd_dfu_boot(self, args):
'''boot into DFU bootloader without hold'''
self.cmd_dosomethingreallynastyto_autopilot(args, 'DFU-boot-without-hold', 99)

def cmd_config_error_autopilot(self, args):
'''Ask the autopilot to jump into its config error loop'''
self.cmd_dosomethingreallynastyto_autopilot(args, 'config-loop', 101)

def cmd_deadlock(self, args):
'''trigger a mutex deadlock'''
self.cmd_dosomethingreallynastyto_autopilot(args, 'mutex-deadlock', 100)
Expand Down