mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-11-17 21:11:27 +01:00
separate building AIS class 24
This commit is contained in:
1 parent
3f22164b1d
commit
d0966159c0
1 file changed
+3
-9
@@ -879,6 +879,7 @@ private:
|
||||
setTalkerChannel(NMEA0183AISMsg,_AISInfo);
|
||||
if (SetAISClassBMessage24PartA(NMEA0183AISMsg, _MessageID, _Repeat, _UserID, _Name))
|
||||
{
|
||||
SendMessage(NMEA0183AISMsg);
|
||||
}
|
||||
}
|
||||
return;
|
||||
@@ -908,17 +909,10 @@ private:
|
||||
|
||||
tNMEA0183AISMsg NMEA0183AISMsg;
|
||||
setTalkerChannel(NMEA0183AISMsg,_AISInfo);
|
||||
if (SetAISClassBMessage24(NMEA0183AISMsg, _MessageID, _Repeat, _UserID, _VesselType, _Vendor, _Callsign,
|
||||
if (SetAISClassBMessage24PartB(NMEA0183AISMsg, _MessageID, _Repeat, _UserID, _VesselType, _Vendor, _Callsign,
|
||||
_Length, _Beam, _PosRefStbd, _PosRefBow, _MothershipID))
|
||||
{
|
||||
if (NMEA0183AISMsg.BuildMsg24PartA()){
|
||||
SendMessage(NMEA0183AISMsg);
|
||||
}
|
||||
|
||||
if (NMEA0183AISMsg.BuildMsg24PartB()){
|
||||
SendMessage(NMEA0183AISMsg);
|
||||
}
|
||||
|
||||
SendMessage(NMEA0183AISMsg);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user