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
@@ -428,9 +428,7 @@ void UavcanNode::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
@@ -210,7 +210,7 @@ private:
perf_counter_t _perf_control_latency;
bool _airmode = false;
int32_t _airmode = 0;
// index into _poll_fds for each _control_subs handle
uint8_t _poll_ids[NUM_ACTUATOR_CONTROL_GROUPS_UAVCAN];