Skip to content

Commit

Permalink
Fix sign error in dFY_dP part of transferFunctionJacobian_ (cra-ros-p…
Browse files Browse the repository at this point in the history
…kg#592)

Co-authored-by: Aleksander Bojda <a.bojda@agribot.eu>
  • Loading branch information
2 people authored and efernandez committed Oct 12, 2021
1 parent 704b223 commit 5060ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ekf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ namespace RobotLocalization
zCoeff = -sp * cr;
double dFz_dP = (xCoeff * xVel + yCoeff * yVel + zCoeff * zVel) * delta +
(xCoeff * xAcc + yCoeff * yAcc + zCoeff * zAcc) * oneHalfATSquared;
double dFY_dP = (sr * tp * cpi * pitchVel - cr * tp * cpi * yawVel) * delta;
double dFY_dP = (sr * tp * cpi * pitchVel + cr * tp * cpi * yawVel) * delta;

// Much of the transfer function Jacobian is identical to the transfer function
transferFunctionJacobian_ = transferFunction_;
Expand Down

0 comments on commit 5060ec4

Please sign in to comment.