Skip to content

Commit ce628b6

Browse files
committed
Update some comments
1 parent 6e40da1 commit ce628b6

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/robot.cpp

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* @file robot.cpp
33
* @author José Ángel Sánchez (https://github.com/gelanchez)
44
* @brief Library for controling the robot.
5-
* @version 1.0.0
6-
* @date 2020-08-22
5+
* @version 1.0.1
6+
* @date 2020-08-23
77
* @copyright GPL-3.0
88
*/
99

@@ -22,14 +22,6 @@ m_previousAngle{ 90 }, m_interval{ Constants::updateInterval },
2222
m_sonarMap{ Constants::maxDistance, Constants::maxDistance, Constants::maxDistance, Constants::maxDistance, Constants::maxDistance }
2323
{
2424
m_lastUpdate = millis();
25-
// m_motors = Motors();
26-
// m_servo = MyServo(); // do NOT attach the pin here but in begin
27-
// m_ultrasonic = Ultrasonic();
28-
// m_lineTracking = LineTraking();
29-
// m_sonarMap{Constants::maxDistance, Constants::maxDistance, Constants::maxDistance, Constants::maxDistance, Constants::maxDistance};
30-
// m_state = RobotModeState::START; // Initial state of the RobotMode
31-
// m_previousAngle = 90; // Previous angle of the servo, initial value
32-
// m_interval = Constants::defaultInterval;
3325
}
3426

3527
RobotControl::~RobotControl()
@@ -298,7 +290,7 @@ void RobotControl::lineTrackingMode()
298290
m_motors.stop();
299291
}
300292
break;
301-
case RobotModeState::ROTATE: // Totate 90 deg
293+
case RobotModeState::ROTATE: // Rotate 90 deg
302294
if ((millis() - m_lastUpdate) >= Constants::rotate90Time)
303295
{
304296
m_motors.stop();

0 commit comments

Comments
 (0)