mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 15:04:38 +08:00
mavlink: handle failure injection commands
This adds handling of MAVLink failure injection commands. An additional parameter is added as a guard to prevent triggering any failures by accident.
This commit is contained in:
@@ -255,3 +255,16 @@ PARAM_DEFINE_INT32(SYS_HAS_BARO, 1);
|
||||
* @group System
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SYS_BL_UPDATE, 0);
|
||||
|
||||
/**
|
||||
* Enable failure injection
|
||||
*
|
||||
* If enabled allows MAVLink INJECT_FAILURE commands.
|
||||
*
|
||||
* WARNING: the failures can easily cause crashes and are to be used with caution!
|
||||
*
|
||||
* @boolean
|
||||
*
|
||||
* @group System
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SYS_FAILURE_EN, 0);
|
||||
|
||||
Reference in New Issue
Block a user