I am writing a GCS of my own with the MavLink protocol. but I am having some issues with certain messages. I can send the message #21 (get Parameters) and the APM returns all the parameters just fine.
However, when I send the #76 (Command_Long message… in this case the command is RTL because it takes no params) I don’t get any response. I assume I am supposed to get a Command_ACK(#77), but all I get back is the heart beat
I am designing a GCS for my masters capstone. its a fairly small project, I am writing in C#. However, I am having some problems with communication to the apm… So, here is what I can do:
get heartbeats
send a parameter list request and get a response (so I know my CRC’s are correct)
and here is what I am stuck on.
using the MavCommand Long… I tried the most basic example (RTL which takes no parameters) , but the APM (2.5) doesn’t give me an ACK message back.
I have sniffed my packets (to and from) and they look good. is there something I am missing? I am setting the sender SYSID\COMPID as 255 and 0. and the target SYSID\COMPID as 1 and 0 (the ID from the heartBeat). I have been struggling with this for almost a month and have run out of Ideas.
I desire to use the COMMAND long message because I can do everything I need (including turning on and off relay pins).
any help would be great.
thanks,
Jason Gillikin
PS. I have tried using that python mavGenerator, but It doesn’t seem to run on my computer, so I just construct my own packets according to the mavlink protocol.