-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
SET_ACTUATOR and SET_SERVO in Mission #20554
Comments
I added the |
@bkueng Oh, it turns round that in 1.13.1 there is no So, how can I build a firmware from the source code? Or what should I do to try the current PX4 |
Yes but we can also backport it as it's a small change. |
Thank you a lot! Now DO_SET_ACTUATOR is works correctly. But I have to use #20567 commit because QGC cant connect to drone with firmware based on any other commit. (QGC shows "vehicle did not respond to request for parameters" error). The question about MAVSDK is still open. In MissionRaw.MissionItem param5 and param6 must be Int, so we can use AUX5&6 only with values -1,0,1. Also you cant even set NaN value to this params. But Im not sure that this issue should be discussed there and not in MAVSDK repo |
@junwoo091400 I described the problem with DO_SET_ACTUATOR above, you cant use AUX 5 and 6 except for -1, 0, 1 vaules. And you cant use another AUX without setting values to AUX 5/6 in MAVSDK mission. DO_SET_SERVO can solve this problem, but it doesnt work at the moment. |
This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: https://discuss.px4.io/t/using-do-set-actuator-to-releasing-the-payload/28686/3 |
set_servo
Waypoint with this command has ignored by drone. It doesnt work. I found the same issues in questions on forums, but there are no answers.
In the source code I found the only place where this command is handle in mission_block.cpp:
But as I see, its wrong implementation and #10320 wrote about this 4 years ago. So I dont know, how it can be working.
set_actuator
When I try to upload mission with this command in QGC, I receive the message "Ignoring mission item, invalid Item" and "Mission transfer failed. Error: Command is not supported. Item 1 Command: Set actuator"
The same issue I get when uploading mission in my own app with MAVSDK. It was expected because command MAV_CMD_DO_SET_ACTUATOR should use COMMAND_LONG frame instead of COMMAND_INT (I think the problem is this).
conclusion
DO_SET_SERVO doesnt work at all, drone has no reaction to this command. DO_SET_ACTUATOR cant be used in Mission.
So, how can I use servo (AUX1, for example) in Mission mode?
Thanks.
Drone firmware: 1.13.1, Quadrotor X
QGC: Daily master:9c77d15b2 2022-10-25
P.S. Servo work via RC and with setActuator command in MAVSDK. So the problem only in mission
The text was updated successfully, but these errors were encountered: