mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 15:07:34 +08:00
crazyflie: pmw3901 driver publish gyro equal to NAN for optflow estimator interface
This commit is contained in:
committed by
Lorenz Meier
parent
464db32567
commit
094490190f
@@ -589,6 +589,11 @@ PMW3901::collect()
|
||||
report.sensor_id = 0;
|
||||
report.quality = 255;
|
||||
|
||||
/* No gyro on this board */
|
||||
report.gyro_x_rate_integral = NAN;
|
||||
report.gyro_y_rate_integral = NAN;
|
||||
report.gyro_z_rate_integral = NAN;
|
||||
|
||||
_flow_dt_sum_usec = 0;
|
||||
_flow_sum_x = 0;
|
||||
_flow_sum_y = 0;
|
||||
|
||||
Reference in New Issue
Block a user