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

Command Denied when trying to set imu rate #728

Open
Tuxliri opened this issue Sep 4, 2024 · 6 comments
Open

Command Denied when trying to set imu rate #728

Tuxliri opened this issue Sep 4, 2024 · 6 comments

Comments

@Tuxliri
Copy link

Tuxliri commented Sep 4, 2024

I am trying to set the imu rate using System.telemetry.set_rate_imu(), however the method throws a CommandDenied exception. I am able to set the raw_imu rate using the respective method System.telemetry.set_rate_imu(), thus I suspect that Ardupilot is producing/advertising the imu() mavlink topic. How can I verify this? Is this a known issue?

Board: SpeedyBee F405v3
FC Software: Ardupilot 4.5.5

@julianoes
Copy link
Collaborator

Denied would mean that ArduPilot doesn't accept what you're asking. Have you tried a lower rate?

This sounds like an ArduPilot issue, not a MAVSDK one to me.

@Tuxliri
Copy link
Author

Tuxliri commented Sep 12, 2024

Yes I had tried a rate of 1Hz as well with same results.

@julianoes
Copy link
Collaborator

Can you debug the ArduPilot side and check in code what's happening there?

@Tuxliri
Copy link
Author

Tuxliri commented Sep 16, 2024

@julianoes for sure, I don't know what tools are used to debug Ardupilot, do you have some resources I could read about this? Is it a logfile-based debugging or can I run the software on the flight controller and attach a C++ debugger?

@julianoes
Copy link
Collaborator

My first approach would be to try it in SITL. And then my assumption would be that you can use gdb or printfs when you run it in in SITL, at least that's what it would be for PX4.

@Tuxliri
Copy link
Author

Tuxliri commented Sep 17, 2024

Alright, I'll give that a go.

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