Skip to content

Navigation Menu

Sign in
Sign up

Simulate GPS #35

alikxus started this conversation in General
Jan 22, 2023 · 1 comment
Discussion options

Hi, i need to Simulate gps over mavlink, but i do not understand how i can to send message using your library.

You must be logged in to vote

Replies: 1 comment

Comment options

Hello, first you have to identify the message that is used to carry GPS informations. The mavlink protocol doesn't define a specific message for sending GPS informations, it just provides a list of messages that may or may not be used by a Drone.

You can either search in the Mavlink message list:
https://mavlink.io/en/messages/common.html

Or you can connect a gomavlib-based script to a Drone and listen for incoming messages:
https://github.com/aler9/gomavlib/blob/main/examples/endpoint-serial/main.go

If you don't have a Drone, you can use a simulator like Gazebo:
https://gazebosim.org

Once you've identified the message, you can send it with node.WriteMessageAll().

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /