-
Notifications
You must be signed in to change notification settings - Fork 25
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
Parameters - setParamFloat works but setParamInt does not #215
Comments
What param are you setting? What autopilot (I assume PX4?), and what version of it? |
I'm using ArduPilot. I'm unable to change the RTL_LOIT_TIME or RTL_ALT. I also tried the PILOT_ACCEL_Z, TERRAIN_SPACING, and STAT_RUNTIME as well, all unsuccessfully. Edit: I also accounted for "increments", example. RTL_LOIT_TIME has increments of "1000". |
What version of mavsdk_server or MAVSDK-Swift is it using? There have been some fixes, and for ArduPilot there might be some more coming up with MAVSDK v2.0. |
MAVSDK-Swift is on mavsdk-server 1.4.2: https://github.com/mavlink/MAVSDK-Swift/blob/main/Package.swift#L50. Let me try to update that to 1.4.4 tomorrow 👍 |
Right, so there have been a couple of fixes since: You can see the changes here: https://github.com/mavlink/MAVSDK/releases |
Could you try with the newly-published MAVSDK-Swift v1.1.1? |
I updated to 1.1.1. Unfortunately, had the same result. |
Any chance you could try to debug what's happening in C++? Two ways:
I would personally go for 1, build a small example (e.g. this one) and try to reproduce there 👍. Also maybe @ykhedar has an opinion 😇. |
Thank you, will try this tomorrow and let you know how it goes! |
Still working on resolving some errors I'm getting when building the C++. I'd bet this is on my end and will let you know when I get the C++ app up and running. I'm pretty sure my error is related to mavlink/MAVSDK#1875 |
Seems like you are trying to build an example from |
I installed MAVSDK on MacOS using Homebrew, following this: https://mavsdk.mavlink.io/main/en/cpp/quickstart.html Will give building form |
I am able to change the parameters with setParamFloat, but not with setParamInt. I'm thinking it might have to do with using Int32, but thats just speculation. The weird thing is that setParamInt will return "onCompleted" so it will appear that it successfully changes the param, but it does not. Anyone else come across this?
The text was updated successfully, but these errors were encountered: