AirModeYaw - Change airmode type from bool to int

This commit is contained in:
bresch
2018-12-13 09:50:07 +01:00
committed by Beat Küng
parent b2fd8abf9e
commit 7cc00f41d2
12 changed files with 33 additions and 39 deletions
+1 -3
View File
@@ -146,9 +146,7 @@ void PWMSim::update_params()
param_t param_handle = param_find("MC_AIRMODE");
if (param_handle != PARAM_INVALID) {
int32_t val;
param_get(param_handle, &val);
_airmode = val > 0;
param_get(param_handle, &_airmode);
}
}
+1 -1
View File
@@ -131,7 +131,7 @@ private:
actuator_controls_s _controls[actuator_controls_s::NUM_ACTUATOR_CONTROL_GROUPS] {};
orb_id_t _control_topics[actuator_controls_s::NUM_ACTUATOR_CONTROL_GROUPS] {};
bool _airmode{false}; ///< multicopter air-mode
int32_t _airmode{0}; ///< multicopter air-mode
perf_counter_t _perf_control_latency;