QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Committer:
dylanembed123
Date:
Mon Apr 21 13:54:55 2014 +0000
Revision:
21:c546eab07e28
Child:
22:9880a26886db
Issue command to flight controller.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dylanembed123 21:c546eab07e28 1 #define MAVLINK_MSG_ID_PING 4
dylanembed123 21:c546eab07e28 2 #define MAVLINK_MSG_ID_LOITERU 76
dylanembed123 21:c546eab07e28 3 #define MAVLINK_MSG_ID_REQUEST_PLIST 21
dylanembed123 21:c546eab07e28 4 #define MAVLINK_MSG_ID_ATTITUDE 30
dylanembed123 21:c546eab07e28 5 #define MAVLINK_MSG_ID_ITEM 39
dylanembed123 21:c546eab07e28 6 #define MAVLINK_MSG_ID_REQUEST_LIST 43
dylanembed123 21:c546eab07e28 7 #define MAVLINK_MSG_ID_COUNT 44
dylanembed123 21:c546eab07e28 8 #include "mbed.h"
dylanembed123 21:c546eab07e28 9
dylanembed123 21:c546eab07e28 10
dylanembed123 21:c546eab07e28 11 /// Define Pinout
dylanembed123 21:c546eab07e28 12 #define MAVPINTX p28
dylanembed123 21:c546eab07e28 13 #define MAVPINRX p27
dylanembed123 21:c546eab07e28 14
dylanembed123 21:c546eab07e28 15 /// Define Baud
dylanembed123 21:c546eab07e28 16 #define MAVBAUD 57600
dylanembed123 21:c546eab07e28 17
dylanembed123 21:c546eab07e28 18 #define MAVMAXSIZE 512
dylanembed123 21:c546eab07e28 19
dylanembed123 21:c546eab07e28 20 typedef unsigned char uint8_t;
dylanembed123 21:c546eab07e28 21 typedef unsigned short uint16_t;
dylanembed123 21:c546eab07e28 22
dylanembed123 21:c546eab07e28 23 class Mav{
dylanembed123 21:c546eab07e28 24 private:
dylanembed123 21:c546eab07e28 25 static Serial* mav;
dylanembed123 21:c546eab07e28 26 public:
dylanembed123 21:c546eab07e28 27 static Serial& getSerial();
dylanembed123 21:c546eab07e28 28 static char* generatePacket(int messageID,char* payload=NULL,int length=0,int* outLength=NULL);
dylanembed123 21:c546eab07e28 29 static void sendOutput(int messageID,char* payload=NULL,int length=0);
dylanembed123 21:c546eab07e28 30 };