Utility library for multiple control sources (e.g. PC).
Diff: PcControls.h
- Revision:
- 4:178418dc887f
- Parent:
- 3:8f13d2dafaed
diff -r 8f13d2dafaed -r 178418dc887f PcControls.h --- a/PcControls.h Thu Jan 07 09:08:39 2016 +0000 +++ b/PcControls.h Thu Jan 07 16:19:49 2016 +0000 @@ -9,8 +9,9 @@ MotorControlsPc(MotorController &motorController); void ProcessPcInput(char c); - - private: + + MotorController getMotorController(); + static const char MOTOR_POSITION_0 = '0'; static const char MOTOR_POSITION_1 = '1'; static const char MOTOR_POSITION_2 = '2'; @@ -26,8 +27,9 @@ static const char MOTOR_HALT = 'h'; static const char MOTOR_FORWARD = 'f'; static const char MOTOR_BACKWARD = 'b'; - static const char MOTOR_POSITION = 'p'; + static const char MOTOR_POSITION = 'p'; + private: MotorController &motorController; };