mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 07:33:33 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user