simulator: use failure injection to block GPS

This uses the new failure injection system using vehicle_commands
instead of specific parameters. For now it implements GPS only.
This commit is contained in:
Julian Oes
2020-06-09 14:20:08 +02:00
committed by Daniel Agar
parent 53b14233a2
commit a9c4f269bd
4 changed files with 122 additions and 74 deletions
+1
View File
@@ -1115,6 +1115,7 @@ Commander::handle_command(vehicle_status_s *status_local, const vehicle_command_
case vehicle_command_s::VEHICLE_CMD_DO_SET_ROI_WPNEXT_OFFSET:
case vehicle_command_s::VEHICLE_CMD_DO_SET_ROI_NONE:
case vehicle_command_s::VEHICLE_CMD_FIXED_MAG_CAL_YAW:
case vehicle_command_s::VEHICLE_CMD_INJECT_FAILURE:
/* ignore commands that are handled by other parts of the system */
break;