Skip to content

Commit

Permalink
Fix AISInfo for pgn 129810
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Soltero committed Mar 28, 2024
1 parent 556a5a0 commit 8562107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/N2kMessages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ void SetN2kPGN129810(tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, u
N2kMsg.Add2ByteUDouble(PosRefBow, 0.1);
N2kMsg.Add4ByteUInt(MothershipID);
N2kMsg.AddByte(0x03); // Reserved + AIS spare
N2kMsg.AddByte(0xe3 | (AISInfo & 0x1f)); // AIS Tranceiver info + Channel B VDL transmission + reserved
N2kMsg.AddByte(0xe0 | (AISInfo & 0x1f)); // AIS Tranceiver info + reserved
N2kMsg.AddByte(SID);
}

Expand Down
2 changes: 1 addition & 1 deletion src/N2kMessages.h
Original file line number Diff line number Diff line change
Expand Up @@ -4790,7 +4790,7 @@ inline bool ParseN2kAISClassBStaticPartA(const tN2kMsg &N2kMsg, uint8_t &Message
*/
void SetN2kPGN129810(tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID,
uint8_t VesselType, const char *Vendor, const char *Callsign, double Length, double Beam,
double PosRefStbd, double PosRefBow, uint32_t MothershipID, tN2kAISTransceiverInformation AISInfo=N2kaischannel_A_VDL_reception, uint8_t SID=0xff);
double PosRefStbd, double PosRefBow, uint32_t MothershipID, tN2kAISTransceiverInformation AISInfo=N2kaischannel_B_VDL_reception, uint8_t SID=0xff);

/************************************************************************//**
* \brief Setting up Message "AIS static data class B part B" - PGN 129810
Expand Down

0 comments on commit 8562107

Please sign in to comment.