Commit 557b47e6 authored by aligungr's avatar aligungr

RLS improvements

parent 308666c0
......@@ -123,6 +123,20 @@ std::unique_ptr<RlsMessage> DecodeRlsMessage(const OctetView &stream)
res->payload = stream.readOctetString(stream.read4I());
return res;
}
else if (msgType == EMessageType::HEARTBEAT)
{
auto res = std::make_unique<RlsHeartBeat>(sti);
res->simPos.x = stream.read4I();
res->simPos.y = stream.read4I();
res->simPos.z = stream.read4I();
return res;
}
else if (msgType == EMessageType::HEARTBEAT_ACK)
{
auto res = std::make_unique<RlsHeartBeatAck>(sti);
res->dbm = stream.read4I();
return res;
}
return nullptr;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment