Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
mavcontrol.h
- Committer:
- dylanembed123
- Date:
- 2014-04-21
- Revision:
- 21:c546eab07e28
- Child:
- 22:9880a26886db
File content as of revision 21:c546eab07e28:
#define MAVLINK_MSG_ID_PING 4 #define MAVLINK_MSG_ID_LOITERU 76 #define MAVLINK_MSG_ID_REQUEST_PLIST 21 #define MAVLINK_MSG_ID_ATTITUDE 30 #define MAVLINK_MSG_ID_ITEM 39 #define MAVLINK_MSG_ID_REQUEST_LIST 43 #define MAVLINK_MSG_ID_COUNT 44 #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); };