Skip to content
Snippets Groups Projects
Commit 7b9a0ff4 authored by dawehr's avatar dawehr
Browse files

Removed biquad filter on OF velocity because it doesn't work

parent bb0c1a26
No related branches found
No related tags found
No related merge requests found
...@@ -122,8 +122,10 @@ int sensor_processing(log_t* log_struct, user_input_t *user_input_struct, raw_se ...@@ -122,8 +122,10 @@ int sensor_processing(log_t* log_struct, user_input_t *user_input_struct, raw_se
sensor_struct->optical_flow = raw_sensor_struct->optical_flow; sensor_struct->optical_flow = raw_sensor_struct->optical_flow;
flow_to_vel(&sensor_struct->optical_flow, raw_sensor_struct->lidar_distance_m); flow_to_vel(&sensor_struct->optical_flow, raw_sensor_struct->lidar_distance_m);
sensor_struct->optical_flow.xVel = biquad_execute(&sensor_struct->flow_x_filt, -sensor_struct->optical_flow.xVel); // sensor_struct->optical_flow.xVel = biquad_execute(&sensor_struct->flow_x_filt, -sensor_struct->optical_flow.xVel);
sensor_struct->optical_flow.yVel = biquad_execute(&sensor_struct->flow_y_filt, -sensor_struct->optical_flow.yVel); // sensor_struct->optical_flow.yVel = biquad_execute(&sensor_struct->flow_y_filt, -sensor_struct->optical_flow.yVel);
sensor_struct->optical_flow.xVel *= -1;
sensor_struct->optical_flow.yVel *= -1;
/* /*
* Altitude double complementary filter * Altitude double complementary filter
......
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