Skip to content

Commit

Permalink
Changed pin assignments for LPWM and RPWL to drive my hydraulic motor…
Browse files Browse the repository at this point in the history
… into the opposite direction. Apparently, there seems to be an issue with pypilot where the port and starboard buttons move the rudder correctly but the moment I turned on course keeper, the rudder moved in the opposite direction. So I swapped pins to accommodate. Now the pilot works!
  • Loading branch information
McNugget6750 committed Dec 9, 2019
1 parent a186c8d commit a17d7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arduino/motor/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

#ifdef BOARD_IBT2_H_BRIDGE
#define ENABLE_PIN 4 // Combined enable pin for both BTS7960
#define RPWM_PIN 5 // First PWM input to BTS7960 // Drives CCW
#define LPWM_PIN 6 // Second PWM input to BTS7960 // Drives CW
#define RPWM_PIN 6 // First PWM input to BTS7960 // Drives CCW
#define LPWM_PIN 5 // Second PWM input to BTS7960 // Drives CW
#define R_IS_PIN A0 // Analog input if used
#define L_IS_PIN A1 // Analog input if used
#endif
Expand Down

0 comments on commit a17d7c7

Please sign in to comment.