Skip to content
Snippets Groups Projects
Commit 9700d727 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug in the control ROS node: when the watchdog was active, the...

Solved a bug in the control ROS node: when the watchdog was active, the steering command alternated between 0 and the last steering angle received.
parent 10a11930
Branches master
No related tags found
No related merge requests found
......@@ -62,6 +62,7 @@ void ModelCarControlAlgNode::mainNodeThread(void)
this->control_AckermannDriveStamped_msg_.drive.jerk=0.0;
this->control_watchdog.reset(ros::Duration(this->config_.watchdog_time));
this->linear_speed_control=0.0;
this->steer_angle_control=0.0;
first=true;
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment