Skip to content

Commit

Permalink
N2kMessages: Fix COG and SOG parsing in PGN129026
Browse files Browse the repository at this point in the history
  • Loading branch information
KimBP committed Nov 4, 2016
1 parent dd5fca3 commit 1bce0c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions N2kMessages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ bool ParseN2kPGN129026(const tN2kMsg &N2kMsg, unsigned char &SID, tN2kHeadingRef

SID=N2kMsg.GetByte(Index);
b=N2kMsg.GetByte(Index); ref=(tN2kHeadingReference)( b & 0x03 );
COG=N2kMsg.Get2ByteDouble(0.0001,Index);
SOG=N2kMsg.Get2ByteDouble(0.01,Index);
COG=N2kMsg.Get2ByteUDouble(0.0001,Index);
SOG=N2kMsg.Get2ByteUDouble(0.01,Index);

return true;
}
Expand Down

0 comments on commit 1bce0c5

Please sign in to comment.