AP_NavEKF2: minor spelling fixes to optflow fusion

This commit is contained in:
Randy Mackay 2022-01-17 15:49:16 +09:00
parent f57a081ceb
commit 6c947fc10b
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ void NavEKF2_core::EstimateTerrainOffset()
gndHgtValidTime_ms = imuSampleTime_ms;
// propagate ground position state noise each time this is called using the difference in position since the last observations and an RMS gradient assumption
// limit distance to prevent intialisation afer bad gps causing bad numerical conditioning
// limit distance to prevent initialisation after bad gps causing bad numerical conditioning
ftype distanceTravelledSq = sq(stateStruct.position[0] - prevPosN) + sq(stateStruct.position[1] - prevPosE);
distanceTravelledSq = MIN(distanceTravelledSq, 100.0f);
prevPosN = stateStruct.position[0];
@ -303,7 +303,7 @@ void NavEKF2_core::FuseOptFlow()
// Fuse X and Y axis measurements sequentially assuming observation errors are uncorrelated
for (uint8_t obsIndex=0; obsIndex<=1; obsIndex++) { // fuse X axis data first
// calculate range from ground plain to centre of sensor fov assuming flat earth
// calculate range from ground plane to centre of sensor fov assuming flat earth
ftype range = constrain_ftype((heightAboveGndEst/prevTnb.c.z),rngOnGnd,1000.0f);
// correct range for flow sensor offset body frame position offset