Colin Stearns / Mbed 2 deprecated qcControl

Dependencies:   mbed

Fork of dgps by Colin Stearns

Revision:
21:c546eab07e28
Child:
22:9880a26886db
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mavcontrol.h	Mon Apr 21 13:54:55 2014 +0000
@@ -0,0 +1,30 @@
+#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);
+};
\ No newline at end of file