fs and ftg working. bent forward not working
Fork of dataComm by
Diff: dataComm.h
- Revision:
- 2:53547eb587fb
- Parent:
- 1:ad39c297a768
- Child:
- 3:2091104c9b61
--- a/dataComm.h Fri Mar 20 23:08:01 2015 +0000 +++ b/dataComm.h Mon Apr 13 17:43:34 2015 +0000 @@ -5,10 +5,9 @@ #include <string> #include "mbed.h" -//#include "MODSERIAL.h" /** * @file dataComm.h -* @brief This header file describes dataComm, an object that receives and processes messages through Bluetooth. +* @brief This header file describes dataComm, an object that receives and processes messages sent to the controlbed via SPI. * @author Michael Ling * @date 2/4/2015 */ @@ -20,35 +19,27 @@ bool parity(short c); char* get_checksum(char* b, int len); - //void send_error(char errCode); - //void setCharge(short level); void set_values(std::map<string, short> newValues); - //void send(char* cmd); + void send_values(char* paramList); void send_read_only_values(); bool msg_check(char* msg, int len); - //void process_read_only(char* message, int len); - //void process_read(char* message, int len); - //void process_write(short* message, int len); void process_write(short int *message, int len); char *convert_to_char_array(short int *message, int len); - //void process(char* message, int len); - //void attachment(); int main(); short generic_get(string var); void generic_set(string var, short newval); private: - //MODSERIAL _rn42; // serial object to read data coming in + //Map containing values of Exo parameters std::map<std::string, short> _paramMap; //Maps parameter indices to param names std::string _indexMap[50]; //Last received MSG char _msg[50]; - //Value of Exo parameters, stored locally - // _localValues[50]; + char _curMsg[50]; int _numVars; //Last sent command