Skip to content
Snippets Groups Projects
Commit 90b91868 authored by Hoop77's avatar Hoop77
Browse files

-

parent 18a1ba10
Branches
No related merge requests found
......@@ -25,15 +25,12 @@ void PlatoonController::updatePcConfig()
auto otherIPD = pc->getInnerPlatoonDistance();
if (otherPS.getTimestamp() > PS.getTimestamp())
{
PS = otherPS;
messageOStream.write("new PS", PS.get());
}
if (otherIPD.getTimestamp() > IPD.getTimestamp())
{
IPD = otherIPD;
messageOStream.write("new IPD", IPD.get());
}
platoonConfig = platoonProtocol::PlatoonConfig{PS.get(), IPD.get()};
cruiseControllerNotify();
}
......
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