Skip to content

Commit

Permalink
Merge pull request #42 from joeuser846/motor-defines
Browse files Browse the repository at this point in the history
Use MOTOR_LEFT/RIGHT from diffbot_base_config.h instead of hardcoding
  • Loading branch information
fjp authored Nov 4, 2021
2 parents 895e3c4 + 2d99a0c commit 327f395
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 327f395

Please sign in to comment.