mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:28:53 +08:00
pmw3901: Adjust scale factor to match gyro data
This commit is contained in:
@@ -324,8 +324,8 @@ PMW3901::RunImpl()
|
||||
return;
|
||||
}
|
||||
|
||||
delta_x = (float)_flow_sum_x / 500.0f; // proportional factor + convert from pixels to radians
|
||||
delta_y = (float)_flow_sum_y / 500.0f; // proportional factor + convert from pixels to radians
|
||||
delta_x = (float)_flow_sum_x / 385.0f; // proportional factor + convert from pixels to radians
|
||||
delta_y = (float)_flow_sum_y / 385.0f; // proportional factor + convert from pixels to radians
|
||||
|
||||
optical_flow_s report{};
|
||||
report.timestamp = timestamp;
|
||||
|
||||
Reference in New Issue
Block a user