Qground Control simulation by writing to the serial port

I need to get an idea on how QGroundControl really works. (Without actually using the UAV). So I planned to write MAVLink packets to the serial port using an Arduino and then selected the corresponding serial port settings in QGroundControl. 

My plan was to transmit the same Heartbeat packet once a second(FE  09  4E  01  01  00  00  00  00  00  02  03  51  04  03  1C  7F) and check whether QGS identifies the device and MAVlink connection.

Here is the Arduino code:

//start of code

byte b[]={
0xfe,0x09,0x4e,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x02,0x03,0x51,0x04,0x03,0x1c,0x7f
};

byte i;

void setup(){
Serial.begin(9600);
}

void loop(){
for(i=0;i<17;i++){
Serial.print(b[i]);
}
delay(1000);
}

////end of code

But in the communication console I only see the numbers which are transmitted. Not the MAVlink packets. Can you please make any suggestions?

Tags: arduino, mavlink, qgc, qgroundcontrol

Views: 163

Reply to This

© 2014   Created by Chris Anderson.

Badges  |  Report an Issue  |  Terms of Service