-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ryan Friedman <[email protected]>
- Loading branch information
Showing
1 changed file
with
44 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
#include "SITL.h" | ||
|
||
#if AP_SIM_ENABLED | ||
|
||
namespace SITL { | ||
// user settable parameters for airspeed sensors | ||
const AP_Param::GroupInfo SIM::AirspeedParm::var_info[] = { | ||
// user settable parameters for the 1st airspeed sensor | ||
AP_GROUPINFO("RND", 1, AirspeedParm, noise, 2.0), | ||
AP_GROUPINFO("OFS", 2, AirspeedParm, offset, 2013), | ||
// @Param: FAIL | ||
// @DisplayName: Airspeed sensor failure | ||
// @Description: Simulates Airspeed sensor 1 failure | ||
// @Values: 0:Disabled, 1:Enabled | ||
// @User: Advanced | ||
AP_GROUPINFO("FAIL", 3, AirspeedParm, fail, 0), | ||
// @Param: FAILP | ||
// @DisplayName: Airspeed sensor failure pressure | ||
// @Description: Simulated airspeed sensor failure pressure | ||
// @Units: Pa | ||
// @User: Advanced | ||
AP_GROUPINFO("FAILP", 4, AirspeedParm, fail_pressure, 0), | ||
// @Param: PITOT | ||
// @DisplayName: Airspeed pitot tube failure pressure | ||
// @Description: Simulated airspeed sensor pitot tube failure pressure | ||
// @Units: Pa | ||
// @User: Advanced | ||
AP_GROUPINFO("PITOT", 5, AirspeedParm, fail_pitot_pressure, 0), | ||
// @Param: SIGN | ||
// @DisplayName: Airspeed signflip | ||
// @Description: Simulated airspeed sensor with reversed pitot/static connections | ||
// @Values: 0:Disabled, 1:Enabled | ||
// @User: Advanced | ||
AP_GROUPINFO("SIGN", 6, AirspeedParm, signflip, 0), | ||
// @Param: RATIO | ||
// @DisplayName: Airspeed ratios | ||
// @Description: Simulated airspeed sensor ratio | ||
// @User: Advanced | ||
AP_GROUPINFO("RATIO", 7, AirspeedParm, ratio, 1.99), | ||
AP_GROUPEND | ||
}; | ||
} | ||
|
||
#endif // AP_SIM_ENABLED | ||
#include "SITL.h" | ||
|
||
#if AP_SIM_ENABLED | ||
|
||
namespace SITL { | ||
// user settable parameters for airspeed sensors | ||
const AP_Param::GroupInfo SIM::AirspeedParm::var_info[] = { | ||
// user settable parameters for the 1st airspeed sensor | ||
AP_GROUPINFO("RND", 1, AirspeedParm, noise, 2.0), | ||
AP_GROUPINFO("OFS", 2, AirspeedParm, offset, 2013), | ||
// @Param: FAIL | ||
// @DisplayName: Airspeed sensor failure | ||
// @Description: Simulates Airspeed sensor 1 failure | ||
// @Values: 0:Disabled, 1:Enabled | ||
// @User: Advanced | ||
AP_GROUPINFO("FAIL", 3, AirspeedParm, fail, 0), | ||
// @Param: FAILP | ||
// @DisplayName: Airspeed sensor failure pressure | ||
// @Description: Simulated airspeed sensor failure pressure | ||
// @Units: Pa | ||
// @User: Advanced | ||
AP_GROUPINFO("FAILP", 4, AirspeedParm, fail_pressure, 0), | ||
// @Param: PITOT | ||
// @DisplayName: Airspeed pitot tube failure pressure | ||
// @Description: Simulated airspeed sensor pitot tube failure pressure | ||
// @Units: Pa | ||
// @User: Advanced | ||
AP_GROUPINFO("PITOT", 5, AirspeedParm, fail_pitot_pressure, 0), | ||
// @Param: SIGN | ||
// @DisplayName: Airspeed signflip | ||
// @Description: Simulated airspeed sensor with reversed pitot/static connections | ||
// @Values: 0:Disabled, 1:Enabled | ||
// @User: Advanced | ||
AP_GROUPINFO("SIGN", 6, AirspeedParm, signflip, 0), | ||
// @Param: RATIO | ||
// @DisplayName: Airspeed ratios | ||
// @Description: Simulated airspeed sensor ratio | ||
// @User: Advanced | ||
AP_GROUPINFO("RATIO", 7, AirspeedParm, ratio, 1.99), | ||
AP_GROUPEND | ||
}; | ||
} | ||
|
||
#endif // AP_SIM_ENABLED |