Thijs Riezebeek / Controls

Dependents:   uva_nc

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PcControls.h Source File

PcControls.h

00001 #ifndef PCCONTROLS_H
00002 #define PCCONTROLS_H
00003 
00004 #include "mbed.h"
00005 #include "MotorController.h"
00006 
00007 class MotorControlsPc {
00008     public:
00009         MotorControlsPc(MotorController &motorController);
00010         
00011         void ProcessPcInput(char c);
00012         
00013         MotorController getMotorController();
00014         
00015         static const char MOTOR_POSITION_0  = '0';
00016         static const char MOTOR_POSITION_1  = '1';
00017         static const char MOTOR_POSITION_2  = '2';
00018         static const char MOTOR_POSITION_3  = '3';
00019         static const char MOTOR_POSITION_4  = '4';
00020         static const char MOTOR_POSITION_5  = '5';
00021         static const char MOTOR_POSITION_6  = '6';
00022         static const char MOTOR_POSITION_7  = '7';
00023         static const char MOTOR_POSITION_8  = '8';
00024         static const char MOTOR_POSITION_9  = '9';
00025         static const char MOTOR_POSITION_10 = '-';
00026         static const char MOTOR_START       = 's';
00027         static const char MOTOR_HALT        = 'h';
00028         static const char MOTOR_FORWARD     = 'f';
00029         static const char MOTOR_BACKWARD    = 'b';
00030         static const char MOTOR_POSITION    = 'p';
00031         
00032     private:    
00033         MotorController &motorController;
00034 };
00035 
00036 #endif