mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:28:53 +08:00
mavlink: fix type passed to param_get()
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user