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

Telemetry rates: set_rate_rc unsupported #2516

Open
matthieu-db opened this issue Feb 27, 2025 · 5 comments
Open

Telemetry rates: set_rate_rc unsupported #2516

matthieu-db opened this issue Feb 27, 2025 · 5 comments

Comments

@matthieu-db
Copy link

On Ardupilot, I need to set the telemetry rates myself or I don't get any updates. This works for battery and GPS, for instance.

set_rate_rc is not implemented, I guess because it is already sent with system status. However I don't get any updates there unless I open QGroundControl and then come back to my app.

I guess this is more of a list of questions:

  • How does a GCS make the rc connection status start working?
  • How do I get the connection strength percentage? It is always NaN
  • I don't really want to change the rates that are configured in parameters on the autopilot. Is there a way to set the rate to the value configured on the autopilot? Or do I need to fetch the parameter and then set it to that value with set_rate_* ? In that case, how do I know which parameter to check (i.e. which telemetry port: for ArduPilot x in SRx_*)?
@matthieu-db
Copy link
Author

matthieu-db commented Feb 28, 2025

I'm now getting COMMAND_DENIED: Command Denied with telemetry.setRateAltitude(1.0)

StatusText from telemetry has:

INFO No ap_message for mavlink id (141)

I guess this means Ardupilot doesn't support the "ALTITUDE" MAVLINK message. ArduPilot/ardupilot#6317 . This is a bit unexpected. The issue suggests there are other messages that contain the alititude. Which ones?

Again, working fine with PX4

@JonasVautherin
Copy link
Collaborator

JonasVautherin commented Feb 28, 2025

I can't help much there, unfortunately, but I wanted to thank you for looking into that! Always happy to get contributions improving Ardupilot support 😊

@matthieu-db
Copy link
Author

Haha that was not the answer I was hoping for but fair enough, I'll try to figure it out and maybe contribute something back :)

@JonasVautherin
Copy link
Collaborator

Did you try asking on the Ardupilot Discord? I know that some people are using MAVSDK with Ardupilot (they contributed the support we have now) and they may be able to help you. They probably won't see this issue here, so it's probably worth linking it on their Discord 👍.

@matthieu-db
Copy link
Author

  • For the altitude, I got it from telemetry.position
  • For the speed, the ODOMETRY message is also not supported by ArduPilot. Instead I got it from telemetry.velocityNed - I just needed the sqrt of the three components so that should be fine too
  • still outstanding for me: the RC connection status question

@JonasVautherin I will try the discord, thanks for the suggestion!

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

No branches or pull requests

2 participants