Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
Diff: handle/mavcontrol.h
- Revision:
- 26:06f1c9d70e9f
- Parent:
- 23:497f8faa908e
- Child:
- 33:ad63e7013801
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/handle/mavcontrol.h Tue Apr 22 14:21:01 2014 +0000 @@ -0,0 +1,32 @@ +#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); +}; \ No newline at end of file