Comments (3)
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.
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.
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)
- Help on getting telemetry stream HOT 3
- UDP Broadcast example panics HOT 2
- Help on getting a minimal local example HOT 1
- undefined: CELLULAR_NETWORK_FAILED_REASON HOT 3
- Read a file and generate mavlink events like a simulation HOT 4
- How to add a customize message HOT 4
- crash on github.com/aler9/gomavlib/pkg/frame.(*V2Frame).Decode HOT 3
- Trouble with MessageParamExtRequestList HOT 4
- Int32 param fails but Real32 works HOT 6
- Constant overflows for enum when building for armv7 HOT 3
- java link is broken HOT 2
- about gomavlib and mavsdk-go HOT 2
- send MAV_CMD HOT 1
- MOUNT_STATUS is not parsed correctly HOT 2
- Relaying a message with a different sourceSystemID HOT 2
- How to parse MessageRaw struct. HOT 2
- bug in enum MarshalText() methods HOT 2
- Access to internal message fields? HOT 3
- Decoder panics HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gomavlib.