Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Jan 10, 2024
1 parent 35c7dd0 commit db26456
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ TB6612::TB6612(int motor_pin, int pwm_pin) : motor_pin(motor_pin), pwm_pin(pwm_p
{
gpioSetMode(this->motor_pin, PI_OUTPUT);
gpioSetMode(this->pwm_pin, PI_OUTPUT);
// gpioWrite(this->motor_pin, 0);
// gpioPWM(this->pwm_pin, 0);
}

void TB6612::setPWM(int value)
Expand Down
8 changes: 0 additions & 8 deletions app/raspberry_pi/tests/tb6612/test_rear_wheels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,13 @@ class BackWheels

void forward()
{
// this->pca9685.setPWM(Motor_A, 1);
// this->pca9685.setPWM(Motor_B, 1);
// gpioWrite(Motor_A, 1);
// gpioWrite(Motor_B, 1);
this->left_wheel->forward();
this->right_wheel->forward();
std::cout << "Forward" << std::endl;
}

void backward()
{
// this->pca9685.setPWM(Motor_A, 0);
// this->pca9685.setPWM(Motor_B, 0);
// gpioWrite(Motor_A, 0);
// gpioWrite(Motor_B, 0);
this->left_wheel->backward();
this->right_wheel->backward();
std::cout << "Backward" << std::endl;
Expand Down

0 comments on commit db26456

Please sign in to comment.