diff --git a/modules/catkin_ws/src/car/src/mainNode/PlatoonController.cpp b/modules/catkin_ws/src/car/src/mainNode/PlatoonController.cpp index b5bf068a2f8201148fd3b0dac77f9c308be9c8cb..7c74a5ad9e59d7db537639d67117580a5aa858c9 100644 --- a/modules/catkin_ws/src/car/src/mainNode/PlatoonController.cpp +++ b/modules/catkin_ws/src/car/src/mainNode/PlatoonController.cpp @@ -30,7 +30,7 @@ void PlatoonController::updatePcConfig() { } void PlatoonController::updateDesSpeed() { - pc2car::TimedValue<float> otherDesSpeed = pc->getInnerPlatoonDistance(); + pc2car::TimedValue<float> otherDesSpeed = pc->getSpeed(); if ( otherDesSpeed.getTimestamp() > desSpeed.getTimestamp() ) { desSpeed = otherDesSpeed; } cruiseControllerNotify();