Commander: remove COM_ARM_ARSP_EN

Since we changed the threshold for allowing arming from TRIM/2 to AIRSPEED_MAX
is is very unlikely that one needs to disable this check.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2023-07-17 10:35:02 +02:00
parent decf1ac0a8
commit 88c5565a29
3 changed files with 3 additions and 17 deletions
@@ -79,8 +79,7 @@ void AirspeedChecks::checkAndReport(const Context &context, Report &reporter)
}
}
if (!context.isArmed() && _param_com_arm_arsp_en.get()
&& fabsf(airspeed_validated.calibrated_airspeed_m_s) > arming_max_airspeed_allowed) {
if (!context.isArmed() && fabsf(airspeed_validated.calibrated_airspeed_m_s) > arming_max_airspeed_allowed) {
/* EVENT
* @description
* Current airspeed reading too high. Check if wind is below maximum airspeed and redo airspeed
@@ -89,7 +88,7 @@ void AirspeedChecks::checkAndReport(const Context &context, Report &reporter)
* <profile name="dev">
* Measured: {1:.1m/s}, limit: {2:.1m/s}.
*
* This check can be configured via <param>COM_ARM_ARSP_EN</param> and <param>FW_AIRSPD_MAX</param> parameter.
* This check can be configured via <param>FW_AIRSPD_MAX</param> parameter.
* </profile>
*/
reporter.armingCheckFailure<float, float>(NavModes::None, health_component_t::differential_pressure,
@@ -53,7 +53,6 @@ private:
const param_t _param_fw_airspd_max_handle;
DEFINE_PARAMETERS_CUSTOM_PARENT(HealthAndArmingCheckBase,
(ParamInt<px4::params::CBRK_AIRSPD_CHK>) _param_cbrk_airspd_chk,
(ParamBool<px4::params::COM_ARM_ARSP_EN>) _param_com_arm_arsp_en
(ParamInt<px4::params::CBRK_AIRSPD_CHK>) _param_cbrk_airspd_chk
)
};