Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
handle/mavcontrol.h@26:06f1c9d70e9f, 2014-04-22 (annotated)
- Committer:
- dylanembed123
- Date:
- Tue Apr 22 14:21:01 2014 +0000
- Revision:
- 26:06f1c9d70e9f
- Parent:
- mavcontrol.h@23:497f8faa908e
- Child:
- 33:ad63e7013801
Move mav into handlers
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dylanembed123 | 21:c546eab07e28 | 1 | #define MAVLINK_MSG_ID_PING 4 |
dylanembed123 | 21:c546eab07e28 | 2 | #define MAVLINK_MSG_ID_REQUEST_PLIST 21 |
dylanembed123 | 21:c546eab07e28 | 3 | #define MAVLINK_MSG_ID_ATTITUDE 30 |
dylanembed123 | 21:c546eab07e28 | 4 | #define MAVLINK_MSG_ID_ITEM 39 |
dylanembed123 | 22:9880a26886db | 5 | #define MAVLINK_MSG_ID_MISSION_REQUEST 40 |
dylanembed123 | 21:c546eab07e28 | 6 | #define MAVLINK_MSG_ID_REQUEST_LIST 43 |
dylanembed123 | 21:c546eab07e28 | 7 | #define MAVLINK_MSG_ID_COUNT 44 |
dylanembed123 | 23:497f8faa908e | 8 | #define MAVLINK_MSG_ID_MISSION_ACK 47 |
dylanembed123 | 23:497f8faa908e | 9 | #define MAVLINK_MSG_ID_LONG 76 |
dylanembed123 | 21:c546eab07e28 | 10 | #include "mbed.h" |
dylanembed123 | 21:c546eab07e28 | 11 | |
dylanembed123 | 21:c546eab07e28 | 12 | |
dylanembed123 | 21:c546eab07e28 | 13 | /// Define Pinout |
dylanembed123 | 21:c546eab07e28 | 14 | #define MAVPINTX p28 |
dylanembed123 | 21:c546eab07e28 | 15 | #define MAVPINRX p27 |
dylanembed123 | 21:c546eab07e28 | 16 | |
dylanembed123 | 21:c546eab07e28 | 17 | /// Define Baud |
dylanembed123 | 21:c546eab07e28 | 18 | #define MAVBAUD 57600 |
dylanembed123 | 21:c546eab07e28 | 19 | |
dylanembed123 | 21:c546eab07e28 | 20 | #define MAVMAXSIZE 512 |
dylanembed123 | 21:c546eab07e28 | 21 | |
dylanembed123 | 21:c546eab07e28 | 22 | typedef unsigned char uint8_t; |
dylanembed123 | 21:c546eab07e28 | 23 | typedef unsigned short uint16_t; |
dylanembed123 | 21:c546eab07e28 | 24 | |
dylanembed123 | 21:c546eab07e28 | 25 | class Mav{ |
dylanembed123 | 21:c546eab07e28 | 26 | private: |
dylanembed123 | 21:c546eab07e28 | 27 | static Serial* mav; |
dylanembed123 | 21:c546eab07e28 | 28 | public: |
dylanembed123 | 21:c546eab07e28 | 29 | static Serial& getSerial(); |
dylanembed123 | 21:c546eab07e28 | 30 | static char* generatePacket(int messageID,char* payload=NULL,int length=0,int* outLength=NULL); |
dylanembed123 | 21:c546eab07e28 | 31 | static void sendOutput(int messageID,char* payload=NULL,int length=0); |
dylanembed123 | 21:c546eab07e28 | 32 | }; |