Code Monkey home page Code Monkey logo

Comments (3)

aler9 avatar aler9 commented on August 10, 2024 1

Hello, microservices are a set of features built upon Mavlink messages. Gomavlib currently implements all Mavlink messages but only the heartbeat service, while the other services are not implemented, since they're very hardware-dependent.

Nonetheless, nothing forbids you to send a command, which is just a simple message, to a drone, without waiting the ACK (the service allows to send commands and waits for acks, that's the only difference).

Just find the message you're interested in from the documentation of the ardupilotmega dialect:
https://pkg.go.dev/github.com/aler9/[email protected]/dialects/ardupilotmega?tab=doc

In this case is MessageCommandInt, documented here:
https://pkg.go.dev/github.com/aler9/[email protected]/dialects/ardupilotmega?tab=doc#MessageCommandInt

then send it (remove the fields you don't need and fill correctly the others):

node.WriteMessageAll(&ardupilotmega.MessageCommandInt{
    TargetSystem: 0,
    TargetComponent: 0,
    Frame: 0,
    Command: 0,
    Current: 0,
    Autocontinue: 0,
    Param1: 0,
    Param2: 0,
    Param3: 0,
    Param4: 0,
    X: 0,
    Y: 0,
    Z: 0,
})

from gomavlib.

dvtkrlbs avatar dvtkrlbs commented on August 10, 2024

https://mavlink.io/en/services/command.html here is the microservice documentation for it and i was also wondering if you have plans to add support for some of these services ?

from gomavlib.

github-actions avatar github-actions commented on August 10, 2024

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

from gomavlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.