Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
handle/mavcontrol.h
- Committer:
- dylanembed123
- Date:
- 2014-04-22
- Revision:
- 26:06f1c9d70e9f
- Parent:
- mavcontrol.h@ 23:497f8faa908e
- Child:
- 33:ad63e7013801
File content as of revision 26:06f1c9d70e9f:
#define MAVLINK_MSG_ID_PING 4 #define MAVLINK_MSG_ID_REQUEST_PLIST 21 #define MAVLINK_MSG_ID_ATTITUDE 30 #define MAVLINK_MSG_ID_ITEM 39 #define MAVLINK_MSG_ID_MISSION_REQUEST 40 #define MAVLINK_MSG_ID_REQUEST_LIST 43 #define MAVLINK_MSG_ID_COUNT 44 #define MAVLINK_MSG_ID_MISSION_ACK 47 #define MAVLINK_MSG_ID_LONG 76 #include "mbed.h" /// Define Pinout #define MAVPINTX p28 #define MAVPINRX p27 /// Define Baud #define MAVBAUD 57600 #define MAVMAXSIZE 512 typedef unsigned char uint8_t; typedef unsigned short uint16_t; class Mav{ private: static Serial* mav; public: static Serial& getSerial(); static char* generatePacket(int messageID,char* payload=NULL,int length=0,int* outLength=NULL); static void sendOutput(int messageID,char* payload=NULL,int length=0); };