A class for using MU2.
Dependents: EM_Mission FM_integration_copy FM_integration_off FM_integration
MU2Class.h@4:a7d413a2889d, 2013-07-13 (annotated)
- Committer:
- ATKINZ117
- Date:
- Sat Jul 13 11:16:09 2013 +0000
- Revision:
- 4:a7d413a2889d
- Parent:
- 3:9f98138ed0c4
checked can send GPS data
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ATKINZ117 | 0:6c7ba361f738 | 1 | #ifndef MU2_CLASS |
ATKINZ117 | 0:6c7ba361f738 | 2 | #define MU2_CLASS |
ATKINZ117 | 0:6c7ba361f738 | 3 | |
ATKINZ117 | 0:6c7ba361f738 | 4 | #include "mbed.h" |
ATKINZ117 | 0:6c7ba361f738 | 5 | |
ATKINZ117 | 0:6c7ba361f738 | 6 | class MU2Class{ |
ATKINZ117 | 0:6c7ba361f738 | 7 | public: |
ATKINZ117 | 0:6c7ba361f738 | 8 | MU2Class(PinName tx,PinName rx); //define pins for communication from CanSat |
ATKINZ117 | 1:c60752b4acb9 | 9 | void send(char Send_Message[]); //a method for sending data from CanSat to PC |
ATKINZ117 | 3:9f98138ed0c4 | 10 | //void send(int Send_Message[]); //overload the send(char)method |
ATKINZ117 | 0:6c7ba361f738 | 11 | |
ATKINZ117 | 0:6c7ba361f738 | 12 | private: |
ATKINZ117 | 0:6c7ba361f738 | 13 | uint8_t Store_Str(char data_str[], int index, char Message[]); |
ATKINZ117 | 4:a7d413a2889d | 14 | //uint8_t Convert_Str(uint8_t data_str[], uint8_t index, uint32_t temp); |
ATKINZ117 | 4:a7d413a2889d | 15 | |
ATKINZ117 | 4:a7d413a2889d | 16 | |
ATKINZ117 | 2:2297b491e452 | 17 | /*uint8_t Store_Int(int data_int[], int index, int Message[]);*/ |
ATKINZ117 | 0:6c7ba361f738 | 18 | PinName _tx; //tx pin name which connected to mbed |
ATKINZ117 | 0:6c7ba361f738 | 19 | PinName _rx; //rx pin name which connected to mbed |
ATKINZ117 | 0:6c7ba361f738 | 20 | }; |
ATKINZ117 | 0:6c7ba361f738 | 21 | |
ATKINZ117 | 0:6c7ba361f738 | 22 | #endif |