send MAV_CMD #24
Unanswered
tommynanny
asked this question in
Q&A
Replies: 1 comment
-
Hello, in order to send commands, you have to follow the procedure described here: https://mavlink.io/en/services/command.html Therefore: node.WriteMessageAll(&ardupilotmega.MessageCommandLong{
TargetSystem: ID,
TargetComponent: ID,
Command: ardupilotmega.MAV_CMD_NAV_TAKEOFF,
}) In order to fill |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi, this might be a really silly question but I am trying to use golang to communicate with SITL at TCP port 5760 (docker). With gomavlib provided examples, I can pick up the mavlink message (heartbeat, battery, etc) from sitl, but I was wondering how I could send out MAV_CMD to sitl to instruct it to do certain tasks; commands such as
MAV_CMD_NAV_WAYPOINT
MAV_CMD_NAV_RETURN_TO_LAUNCH
MAV_CMD_NAV_TAKEOFF
MAV_CMD_NAV_LAND
I am very new to mavlink, any advice would be really appreciated!
Beta Was this translation helpful? Give feedback.
All reactions