Skip to content

Commit

Permalink
Merge pull request #143 from Autonomous-Racing-PG/marian-fix-dms
Browse files Browse the repository at this point in the history
Fix car not stopping on stop command
  • Loading branch information
marian42 committed Jan 17, 2019
2 parents bdd3a75 + b899208 commit fa865f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros_ws/src/car_control/src/car_controller.cpp
Expand Up @@ -43,8 +43,8 @@ void CarController::commandCallback(const std_msgs::String::ConstPtr& command_me
std::string command_str = command_message->data;
if (command_str.compare(COMMAND_STOP) == 0)
{
this->m_enabled = false;
this->publishDriveParameters(0, 0);
this->m_enabled = false;
// brake
std_msgs::Float64 brake_message;
brake_message.data = 0;
Expand Down

0 comments on commit fa865f1

Please sign in to comment.