mavlink: fix type passed to param_get()

This commit is contained in:
Beat Küng
2017-10-27 10:43:15 +02:00
committed by Lorenz Meier
parent 07d7b29729
commit c997698030
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -593,7 +593,7 @@ private:
pthread_mutex_t _send_mutex;
bool _param_initialized;
uint32_t _broadcast_mode;
int32_t _broadcast_mode;
param_t _param_system_id;
param_t _param_component_id;
+3 -2
View File
@@ -668,8 +668,9 @@ MavlinkReceiver::handle_message_optical_flow_rad(mavlink_message_t *msg)
mavlink_optical_flow_rad_t flow;
mavlink_msg_optical_flow_rad_decode(msg, &flow);
enum Rotation flow_rot;
param_get(param_find("SENS_FLOW_ROT"), &flow_rot);
int32_t flow_rot_int;
param_get(param_find("SENS_FLOW_ROT"), &flow_rot_int);
const enum Rotation flow_rot = (Rotation)flow_rot_int;
struct optical_flow_s f = {};