Commands.pde File Reference

#include "CommandConst.h"

Functions

boolean GetMsg (int *instruction, int *data)
void ReturnMsg (int type, int value)
 Returns a confirmation message and value if the message is RET_VAL.
int ParseMsg (char *str)
 Parse a given string into an ArduinoInstr.


Function Documentation

boolean GetMsg ( int *  instruction,
int *  data 
)

Recieves and builds a message from the serial port, posting the instruction and value in the given pointers. True is returned on sucess, false otherwise.

int ParseMsg ( char *  str  ) 

Parse a given string into an ArduinoInstr.

void ReturnMsg ( int  type,
int  value 
)

Returns a confirmation message and value if the message is RET_VAL.

I NEED TO CHECK THIS CODE GOD DAMNED IT


Generated on Sun Feb 21 00:00:08 2010 for Penn State Robotics Club: Mini Grand Challenge 2010 by  doxygen 1.5.5