![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
code for the speed robot
Dependencies: MPU6050-DMP mbed PololuQTRSensors vl53l0x
_pins.h@7:fd80a0d11658, 2019-09-30 (annotated)
- Committer:
- deepanaishtaweera174
- Date:
- Mon Sep 30 13:16:04 2019 +0000
- Revision:
- 7:fd80a0d11658
- Parent:
- 3:9b2f15b0d47b
added motor control code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
deepanaishtaweera174 | 0:c3a27228c31b | 1 | // Gyro Pins |
deepanaishtaweera174 | 3:9b2f15b0d47b | 2 | #define INTERRUPT_PIN PC_10 |
deepanaishtaweera174 | 3:9b2f15b0d47b | 3 | |
deepanaishtaweera174 | 7:fd80a0d11658 | 4 | // TOF |
deepanaishtaweera174 | 3:9b2f15b0d47b | 5 | #define XSHUT_pin1 PC_12 //Right Sensor |
deepanaishtaweera174 | 3:9b2f15b0d47b | 6 | #define XSHUT_pin2 PA_13 //Left Sensor |
deepanaishtaweera174 | 7:fd80a0d11658 | 7 | #define XSHUT_pin3 PA_14 //Front Sensor |
deepanaishtaweera174 | 7:fd80a0d11658 | 8 | |
deepanaishtaweera174 | 7:fd80a0d11658 | 9 | // Motor Pins |
deepanaishtaweera174 | 7:fd80a0d11658 | 10 | #define MOTOR_RIGHT_1 PC_14 |
deepanaishtaweera174 | 7:fd80a0d11658 | 11 | #define MOTOR_RIGHT_2 PC_15 |
deepanaishtaweera174 | 7:fd80a0d11658 | 12 | #define MOTOR_LEFT_1 PH_0 |
deepanaishtaweera174 | 7:fd80a0d11658 | 13 | #define MOTOR_LEFT_2 PH_1 |
deepanaishtaweera174 | 7:fd80a0d11658 | 14 | #define MOTOR_LEFT_POWER_PIN PA_15 |
deepanaishtaweera174 | 7:fd80a0d11658 | 15 | #define MOTOR_RIGHT_POWER_PIN PB_7 |