Tuesday, March 12, 2019

Fixing code

We fixed the code we got off  of GitHub, by changing the pins so they match with our pins. Also running the code on our Tank robot

const int leftDirControl1 = 2;
const int leftDirControl2 = 3;
const int leftSpeedControlPin = 9; // Needs to be a PWM pin to be able to control motor speed

// Right Motor
const int rightDirControl1 = 4;
const int rightDirControl2 = 5;
const int rightSpeedControlPin = 10; // Needs to be a PWM pin to be able to control motor speed

No comments:

Post a Comment