Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get HEARTBEAT message from MAVSDK #715

Open
ShafSpecs opened this issue Jun 28, 2024 · 5 comments
Open

Get HEARTBEAT message from MAVSDK #715

ShafSpecs opened this issue Jun 28, 2024 · 5 comments
Labels

Comments

@ShafSpecs
Copy link
Contributor

I am not sure if this is shipped with MAVSDK, as I didn't see any related docs online. How do we retrieve heartbeat messages (0)? And is there anyway to listen to custom (yet valid and sent) MAVLink messages

Side question for maintainers: If heartbeat isn't supported, is it a thing of creating a .proto file for it? Or it is more complicated?

Thanks 😊!

@julianoes
Copy link
Collaborator

Not possible in Python at the moment. That's until I make the passthrough plugin work through grpc/protobuf, something I have planned: mavlink/MAVSDK#1459

@julianoes
Copy link
Collaborator

Also, what information of the heartbeat message do you actually need?

@ShafSpecs
Copy link
Contributor Author

Also, what information of the heartbeat message do you actually need?

System status. That's the most critical, I would like to collect timestamps as well using the inboard computer. But the status is the most critical

@ShafSpecs
Copy link
Contributor Author

ShafSpecs commented Jun 29, 2024

That's until I make the passthrough plugin work through grpc/protobuf, something I have planned: mavlink/MAVSDK#1459

Would read up the technicalities of the issue referenced when I get back. But at a glance, I prefer the interface method. When sending raw mavlink messages, the checks for validity are done by the vehicle on the fly, not at compile time.

And using interface means whenever a new mavlink feature comes up, mavsdk doesn’t require a full minor release or smthg

@ShafSpecs
Copy link
Contributor Author

What is Mavlink passthrough please? Sending raw mavlink messages, I assume.
I had started writing hypothetical APIs and how it would work, when I didn't know how the passthrough plugin would look like in practice 😅.

Btw, do you know pymavlink? A great example of keeping it low-level with higher-level utilities and safeguards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants