mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 11:03:35 +08:00
ekf: fix flow direction when on ground
This commit is contained in:
@@ -307,8 +307,8 @@ void EstimatorInterface::setOpticalFlowData(uint64_t time_usec, flow_message *fl
|
||||
|
||||
} else {
|
||||
// when on the ground with poor flow quality, assume zero ground relative velocity
|
||||
optflow_sample_new.flowRadXY(0) = + flow->gyrodata(0);
|
||||
optflow_sample_new.flowRadXY(1) = + flow->gyrodata(1);
|
||||
optflow_sample_new.flowRadXY(0) = - flow->gyrodata(0);
|
||||
optflow_sample_new.flowRadXY(1) = - flow->gyrodata(1);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user