AP_NavEKF: index out of range due to incorrect assignment

This commit is contained in:
Tom Pittenger 2015-09-18 13:09:13 -07:00 committed by Randy Mackay
parent d2b103b323
commit e2fde36ec6

View File

@ -2910,7 +2910,7 @@ void NavEKF::FuseOptFlow()
Vector3f velNED_local;
Vector3f relVelSensor;
uint8_t &obsIndex = flow_state.obsIndex;
uint8_t obsIndex = flow_state.obsIndex;
ftype &q0 = flow_state.q0;
ftype &q1 = flow_state.q1;
ftype &q2 = flow_state.q2;