Skip to content

Commit

Permalink
comm/manager/imc/ImcMsgManager: Fix processing heading on StateReport…
Browse files Browse the repository at this point in the history
… message.
  • Loading branch information
paulosousadias committed Oct 3, 2024
1 parent ee17444 commit 04e91e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ private void processStateReport(MessageInfo info, StateReport msg, ArrayList<IMC
double lon = msg.getLongitude();
double depth = msg.getDepth() == 0xFFFF ? -1 : msg.getDepth() / 10.0;
// double altitude = msg.getAltitude() == 0xFFFF ? -1 : msg.getAltitude() / 10.0;
double heading = ((double)msg.getHeading() / 65535.0) * 360;
double heading = Math.toDegrees(AngleUtils.nomalizeAngleRads2Pi(((double) msg.getHeading() / 65535.0) * Math.PI * 2));
double speedMS = msg.getSpeed() / 100.;
NeptusLog.pub().info("Received report from "+msg.getSourceName());

Expand Down

0 comments on commit 04e91e8

Please sign in to comment.