The subsystem design/basis for the final project
Dependencies: mbed-rtos mbed-src pixylib
Diff: global.cpp
- Revision:
- 17:47e107f9587b
- Parent:
- 16:73db7ef2deb6
- Child:
- 19:05b8123905fb
diff -r 73db7ef2deb6 -r 47e107f9587b global.cpp --- a/global.cpp Mon Mar 28 21:39:06 2016 +0000 +++ b/global.cpp Sun Apr 03 19:00:21 2016 +0000 @@ -13,8 +13,8 @@ // Comunication SPI deSpi(p5, p6, p7); Pixy pixy(Pixy::SPI, p11, p12, p13); -Serial pc(USBTX, USBRX); // PC serial channel -Serial bt(p28, p27); // Bluetooth serial channel +//Serial pc(USBTX, USBRX); // PC serial channel +Serial pc(p28, p27); // Bluetooth serial channel // Control PeriodicPI leftMotorPI(MOTOR_PERIOD, MOTOR_KP, MOTOR_KI); @@ -35,6 +35,6 @@ // Returns the last character char flushBuffer(void) { char ch; - while (bt.readable()) pc.putc(bt.getc()); + while (pc.readable()) pc.putc(pc.getc()); return ch; } \ No newline at end of file