Skip to content
Snippets Groups Projects
Commit 027cacbe authored by Hoop77's avatar Hoop77
Browse files

-

parent c2a66a23
Branches
No related merge requests found
......@@ -127,8 +127,6 @@ void PlatoonController::run_ACC()
// !inPlatoon + c2cAlive + wantsPlatoon
bool isLeader = c2c.getRole() == platoonProtocol::Vehicle::Role::LEADER;
bool inPlatoonRange = egoMotion.getDistance() <= maxPlatoonRange;
messageOStream.write("isLeader", isLeader);
messageOStream.write("inPlatoonRange", inPlatoonRange);
if (isLeader == inPlatoonRange)
{ // role does not fit
c2c.leavePlatoon();
......@@ -142,6 +140,8 @@ void PlatoonController::run_ACC()
if (c2c.getRole() == platoonProtocol::Vehicle::Role::LEADER)
{ updatePcConfig(); }
updateDesSpeed();
messageOStream.write("MSG", "end of acc");
}
void PlatoonController::run_CACC_FV()
......
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