myxbee

Fork of XBEE by GDP 4

SwitchCase.h

Committer:
RobinIsLeg
Date:
2016-10-18
Revision:
0:8cdf90642ef6
Child:
1:ce4058bc0913

File content as of revision 0:8cdf90642ef6:

// Add commands you wish to implement to the switch statement and #define the command with the next unused letter of the alphabet
// Please try to minimise the number of lines you add per command i.e. for adding a steer left command simply call steerLeft() which
// you then define in a separate file. This will make it easier to keep track of the big picture of what other people are making
// the car do


#define START 'A'
#define STOP 'B'
#define STATUSSTRING 'C'
void XBEE::switchCase(char command)
{
    switch(command){
        case START:
        
        
        break;
        case STOP:
        
        
        
        break;
        case STATUSSTRING:
        sendCommand("But how long is a piece of string?\n");        
        break;
        
        
        
        
        default:
        sendCommand("Invalid Command Received\n");
        break;
        
        
        
        
        
        }
    
    
}