Skip to content

Commit

Permalink
AP_NavEKF3: remove duplicate assignment of posCheckPassed
Browse files Browse the repository at this point in the history
this assignment is done 4 lines down

../../libraries/AP_NavEKF3/AP_NavEKF3_PosVelFusion.cpp:823:17: warning: Value stored to 'posCheckPassed' is never read [deadcode.DeadStores]
                posCheckPassed = true;
                ^                ~~~~
  • Loading branch information
peterbarker committed Feb 25, 2025
1 parent 6a77d56 commit cfa1459
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libraries/AP_NavEKF3/AP_NavEKF3_PosVelFusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,6 @@ void NavEKF3_core::FuseVelPosNED()
// Handle the special case where the glitch radius parameter has been set to a non-positive number.
// The innovation variance is increased to limit the state update to an amount corresponding
// to a test ratio of 1.
posCheckPassed = true;
lastGpsPosPassTime_ms = imuSampleTime_ms;
varInnovVelPos[3] *= posTestRatio;
varInnovVelPos[4] *= posTestRatio;
Expand Down

0 comments on commit cfa1459

Please sign in to comment.