Skip to content

Commit

Permalink
Use MOTOR_LEFT/RIGHT instead of hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
joeuser846 committed Nov 4, 2021
1 parent e84fbbf commit 2d99a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diffbot_base/scripts/base_controller/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ ros::NodeHandle nh;

using namespace diffbot;

AdafruitMotorController motor_controller_right = AdafruitMotorController(3);
AdafruitMotorController motor_controller_left = AdafruitMotorController(4);
AdafruitMotorController motor_controller_right = AdafruitMotorController(MOTOR_RIGHT);
AdafruitMotorController motor_controller_left = AdafruitMotorController(MOTOR_LEFT);

BaseController<AdafruitMotorController, Adafruit_MotorShield> base_controller(nh, &motor_controller_left, &motor_controller_right);

Expand Down

0 comments on commit 2d99a0c

Please sign in to comment.