From db26456aabff8d1dfcc7d8f1a06f4fe0f642bfd4 Mon Sep 17 00:00:00 2001 From: Chi Huu Huynh <73843190+Chi-EEE@users.noreply.github.com> Date: Wed, 10 Jan 2024 18:14:44 +0000 Subject: [PATCH] Remove commented code --- .../repository/packages/t/tb6612/tb6612/src/TB6612.cpp | 2 -- app/raspberry_pi/tests/tb6612/test_rear_wheels.cpp | 8 -------- 2 files changed, 10 deletions(-) diff --git a/app/raspberry_pi/repository/packages/t/tb6612/tb6612/src/TB6612.cpp b/app/raspberry_pi/repository/packages/t/tb6612/tb6612/src/TB6612.cpp index 3e34763f..d0842062 100644 --- a/app/raspberry_pi/repository/packages/t/tb6612/tb6612/src/TB6612.cpp +++ b/app/raspberry_pi/repository/packages/t/tb6612/tb6612/src/TB6612.cpp @@ -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) diff --git a/app/raspberry_pi/tests/tb6612/test_rear_wheels.cpp b/app/raspberry_pi/tests/tb6612/test_rear_wheels.cpp index 51e5d220..b3669591 100644 --- a/app/raspberry_pi/tests/tb6612/test_rear_wheels.cpp +++ b/app/raspberry_pi/tests/tb6612/test_rear_wheels.cpp @@ -32,10 +32,6 @@ 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; @@ -43,10 +39,6 @@ class BackWheels 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;