Documenting the improvements made to the line-following code for the Fall 2024 Robotics Challenge.
Our robot now follows the line effectively by maintaining straight movement, and in cases when it deviates from the line, it tries to recover the line by moving backward and forward. The key improvements to the line-following code are:
The robot moves forward in a straight line with precise motor control. The calibration process ensures that the motors are balanced for straight motion.
When the robot detects that it has veered off the line (using the sensors), it triggers the recovery routine. The robot checks its position by analyzing the sensor data.
If the robot goes off track, it performs the following steps to recover the line:
This process continues until the robot successfully detects the line again and resumes following it.
The improvement ensures that the robot is more reliable when it strays from the line, and the backward-forward recovery mechanism allows it to quickly get back on track without extensive deviation.
During the development of the robot, we encountered several challenges related to remote access and setting up the necessary environment for the robot's operation: