mavlink heartbeat, and then?

For everything that doesn't fit into the other (sub-) forums

mavlink heartbeat, and then?

Postby klaus » Tue Nov 27, 2012 10:03 pm

Hi all,

I am new to mavlink and have some questions concerning the implementation. I already set up a heartbeat on my flight control every second with the following parameters: (the spam filtermakes it impossible for me to write underscores..)

sysid 20, compid MAV COMP ID IMU, type MAV TYPE FIXED WING, autopilot type MAV AUTOPILOT GENERIC, system mode MAV MODE PREFLIGHT, custom mode 0, system state MAV STATE STANDBY


In mavlink at the console I am receiving something like that: (all in hex)
fe 89 14 c8 01 03 03 e3 a1
fe 8a 14 c8 01 03 03 dd "
fe 8b 14 c8 01 03 03 7\
fe 8c 14 c8 01 03 03 b0 ,

But there is a huge red field with the text UNCONNECTED at the top of the window. What are the next steps so that my ground control realizes that there is a UAV?
klaus
 
Posts: 3
Joined: Tue Nov 27, 2012 9:48 pm

Re: mavlink heartbeat, and then?

Postby sandmen » Wed Nov 28, 2012 1:02 pm

Which routine/program do you use for the receiving function?
Mavlink, is a library only. Or did you mean qgroundcontrol not mavlink?
sandmen
 
Posts: 997
Joined: Fri Jun 22, 2012 7:25 am

Re: mavlink heartbeat, and then?

Postby klaus » Wed Nov 28, 2012 1:28 pm

on my uav I tried to implement mavlink. I am sending a heartbeat from my uav over uart every second. Now I want this heartbeat recognized by qgroundcontrol. I am able to receive the heartbeat by groundcontrol, but only as raw hex-values at the console. groundcontrol does not recognize the heartbeat as an uav.
klaus
 
Posts: 3
Joined: Tue Nov 27, 2012 9:48 pm

Re: mavlink heartbeat, and then?

Postby sandmen » Wed Nov 28, 2012 1:50 pm

Have a look into our source!
I'm not sure, is Heartbeat only enough. After Heartbeat, we send the status message.
mavlink_msg_sys_status_send
sandmen
 
Posts: 997
Joined: Fri Jun 22, 2012 7:25 am

Re: mavlink heartbeat, and then?

Postby klaus » Wed Nov 28, 2012 6:35 pm

I got it now. My uartsend() killed the 0x00 in the message ... :)
klaus
 
Posts: 3
Joined: Tue Nov 27, 2012 9:48 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 11 guests

cron