
first commit
Diff: driving.h
- Revision:
- 8:cca7647cdb4b
- Parent:
- 6:d2bd68ba99c9
- Child:
- 9:5320c2dfb913
--- a/driving.h Mon Oct 25 16:48:20 2021 +0000 +++ b/driving.h Mon Oct 25 18:48:17 2021 +0000 @@ -17,18 +17,16 @@ #define speedSensorScalar 2.5f #define battDividerScalar 4.0; -PwmOut motorLeft(PTB1); -PwmOut motorRight(PTB2); -AnalogIn pot1(PTB0); +AnalogIn pot1(PTB2); //was PTB0 +PwmOut motorLeft(PTE20); //was PTB1 +PwmOut motorRight(PTE21); //was PTB2 + AnalogIn speedSensorLeft(PTB3); AnalogIn speedSensorRight(PTC2); DigitalOut ledRed(LED1); AnalogIn battInput(PTC1); DigitalOut brakeLeft(PTA12); -DigitalOut brakeRight(PTD4); - -DigitalIn enableBrakeLeft(PTA4); -DigitalIn enableBrakeRight(PTA5); +DigitalOut brakeRight(PTA4); //was PTD4 float pot1Voltage; float dutyCycleLeft;