Skip to content
Snippets Groups Projects
Commit 07d7b297 authored by Beat Küng's avatar Beat Küng Committed by Lorenz Meier
Browse files

simulator_mavlink: fix type passed to param_get()

parent c35b0aa2
No related branches found
No related tags found
No related merge requests found
......@@ -1106,8 +1106,9 @@ int Simulator::publish_flow_topic(mavlink_hil_optical_flow_t *flow_mavlink)
flow.quality = flow_mavlink->quality;
/* rotate measurements according to parameter */
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;
float zeroval = 0.0f;
rotate_3f(flow_rot, flow.pixel_flow_x_integral, flow.pixel_flow_y_integral, zeroval);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment