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-09-16 12:51:56 -04:00
committed by Daniel Agar
parent 53b14233a2
commit a9c4f269bd
4 changed files with 122 additions and 74 deletions
-60
View File
@@ -38,63 +38,3 @@
*
* @author Mohamed Abdelkader <mohamedashraf123@gmail.com>
*/
/**
* Simulator block GPS data.
*
* Enable to block the publication of any incoming simulation GPS data.
*
* @boolean
* @group SITL
*/
PARAM_DEFINE_INT32(SIM_GPS_BLOCK, 0);
/**
* Simulator block accelerometer data.
*
* Enable to block the publication of any incoming simulation accelerometer data.
*
* @boolean
* @group SITL
*/
PARAM_DEFINE_INT32(SIM_ACCEL_BLOCK, 0);
/**
* Simulator block gyroscope data.
*
* Enable to block the publication of any incoming simulation gyroscope data.
*
* @boolean
* @group SITL
*/
PARAM_DEFINE_INT32(SIM_GYRO_BLOCK, 0);
/**
* Simulator block magnetometer data.
*
* Enable to block the publication of any incoming simulation magnetometer data.
*
* @boolean
* @group SITL
*/
PARAM_DEFINE_INT32(SIM_MAG_BLOCK, 0);
/**
* Simulator block barometer data.
*
* Enable to block the publication of any incoming simulation barometer data.
*
* @boolean
* @group SITL
*/
PARAM_DEFINE_INT32(SIM_BARO_BLOCK, 0);
/**
* Simulator block differential pressure data.
*
* Enable to block the publication of any incoming simulation differential pressure data.
*
* @boolean
* @group SITL
*/
PARAM_DEFINE_INT32(SIM_DPRES_BLOCK, 0);