forked from Archive/PX4-Autopilot
ekf: fix flow direction when on ground
This commit is contained in:
parent
6cb99ce8a8
commit
81a64c0479
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue