Skip to content
Snippets Groups Projects
Commit 700fcaff authored by Franz Bethke's avatar Franz Bethke Committed by lenoelda
Browse files

Add log mesg to PLC

parent 8f0b5b4f
No related merge requests found
/opt/ros/kinetic/share/catkin/cmake/toplevel.cmake /opt/ros/lunar/share/catkin/cmake/toplevel.cmake
\ No newline at end of file \ No newline at end of file
...@@ -67,8 +67,6 @@ void PlatoonController::setupC2C() ...@@ -67,8 +67,6 @@ void PlatoonController::setupC2C()
void PlatoonController::run() void PlatoonController::run()
{ {
messageOStream.write("run", "");
switch (currState.load()) switch (currState.load())
{ {
case PlatoonState::ACC: case PlatoonState::ACC:
...@@ -91,6 +89,7 @@ void PlatoonController::run() ...@@ -91,6 +89,7 @@ void PlatoonController::run()
void PlatoonController::run_ACC() void PlatoonController::run_ACC()
{ {
messageOStream.write("run - ACC", "");
bool wantsPlatoon = pc->isPlatoonEnabled().get(); bool wantsPlatoon = pc->isPlatoonEnabled().get();
if (!wantsPlatoon) if (!wantsPlatoon)
...@@ -145,6 +144,7 @@ void PlatoonController::run_ACC() ...@@ -145,6 +144,7 @@ void PlatoonController::run_ACC()
void PlatoonController::run_CACC_FV() void PlatoonController::run_CACC_FV()
{ {
messageOStream.write("run - FV", "");
bool inPlatoon = c2c.isPlatoonRunning(); bool inPlatoon = c2c.isPlatoonRunning();
bool wantsPlatoon = pc->isPlatoonEnabled().get(); bool wantsPlatoon = pc->isPlatoonEnabled().get();
...@@ -173,6 +173,7 @@ void PlatoonController::run_CACC_FV() ...@@ -173,6 +173,7 @@ void PlatoonController::run_CACC_FV()
void PlatoonController::run_CACC_LV() void PlatoonController::run_CACC_LV()
{ {
messageOStream.write("run - LV", "");
bool inPlatoon = c2c.isPlatoonRunning(); bool inPlatoon = c2c.isPlatoonRunning();
bool wantsPlatoon = pc->isPlatoonEnabled().get(); bool wantsPlatoon = pc->isPlatoonEnabled().get();
......
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