Utility library for multiple control sources (e.g. PC).
Diff: PcControls.cpp
- Revision:
- 1:39cb90d4bbed
- Parent:
- 0:62cd782bbb11
- Child:
- 2:f3dbcaf26222
--- a/PcControls.cpp Tue Jan 05 14:42:20 2016 +0000 +++ b/PcControls.cpp Wed Jan 06 12:17:52 2016 +0000 @@ -4,8 +4,8 @@ pc ( pc ), motorController ( motorController ) { } -void MotorControlsPc::ProcessPcInput() { - switch (this->pc.getc()) { +void MotorControlsPc::ProcessPcInput(char c) { + switch (c) { case MOTOR_FORWARD: this->motorController.turnRight(); break;