![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Code to drive Team 1's robot for the 2016 R5 robotics competition.
Dependencies: mbed navigation R5_StepperDrive LongRangeSensor DistanceSensor scanner Gripper ColorSensor
Diff: r5driver.cpp
- Revision:
- 26:d99d078921a0
- Parent:
- 25:670a59096bf8
- Child:
- 28:17c17157e728
--- a/r5driver.cpp Mon Mar 21 01:32:17 2016 +0000 +++ b/r5driver.cpp Tue Mar 22 03:00:41 2016 +0000 @@ -33,8 +33,8 @@ VL6180x shortRangeL(PTE0, PTE1, 0x52); // I2C1, 0x29 left-shifted by 1 bit VL6180x shortRangeR(PTC9, PTC8, 0x52); // I2C0, 0x29 left-shifted by 1 bit - Gp2x longRangeL(PTB2); - Gp2x longRangeR(PTB3); + LongRangeSensor longRangeL(pc, PTB2); + LongRangeSensor longRangeR(pc, PTB3); Scanner scanner(pc, PTB0, PTB1, shortRangeL, shortRangeR, longRangeL, longRangeR, 0.075); // (Serial &, PinName servoL, PinName servoR, shortRangeL, shortRangeR, longRangeL, longRangeR, period)