Skip to content
Snippets Groups Projects
Commit fe32bb09 authored by Franz Bethke's avatar Franz Bethke
Browse files

Fix wrong pull in PlatoonController:updateSpeed

parent 30945204
No related merge requests found
...@@ -30,7 +30,7 @@ void PlatoonController::updatePcConfig() { ...@@ -30,7 +30,7 @@ void PlatoonController::updatePcConfig() {
} }
void PlatoonController::updateDesSpeed() { void PlatoonController::updateDesSpeed() {
pc2car::TimedValue<float> otherDesSpeed = pc->getInnerPlatoonDistance(); pc2car::TimedValue<float> otherDesSpeed = pc->getSpeed();
if ( otherDesSpeed.getTimestamp() > desSpeed.getTimestamp() ) { desSpeed = otherDesSpeed; } if ( otherDesSpeed.getTimestamp() > desSpeed.getTimestamp() ) { desSpeed = otherDesSpeed; }
cruiseControllerNotify(); 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