Closed zeevmindali closed 2 years ago
Does that exist in MAVSDK already? What MAVLink messages would you expect to use?
RC9_FUNCTION And wryie values 1100-1900
PX4 or ArduPilot is the first thing that I need to know.
ArduPilot , using mission planner
So MAVSDK implements the set_actuator
function.
It is using the MAVLink MAV_CMD_DO_SET_ACTUATOR
command here: https://github.com/mavlink/MAVSDK/blob/main/src/mavsdk/plugins/action/action_impl.cpp#L462-L492
My feeling is that if you set the index to 9
and the value to whatever you need, it should be sent correctly, as implemented here.
didn't find this option in java
It adopted only in px4 not on ardu
You don't have setActuator
in the action
plugin in Java?
Or are you saying that MAV_CMD_DO_SET_ACTUATOR
is not supported by Ardupilot?
Dear friend, i found out that i can use command 183 (DO_SET_SERVO) to control, tried via mavproxy all is working. now i trying to connect via java (both java and android) and getting connection refused. i using herelink remote device and set the ip and port that it's using.
what am i missing?
i see that mavsdk is not for ardupilot :( , will seek for alternative option
Yes, ArduPilot support is limited and not so easy to achieve due to the differences in how the MAVLink spec is implemented by the two flight stacks. We are trying to get more aligned in the future but it's small steps.
Is DO_SET_SERVO
the Ardupilot equivalent to MAV_CMD_DO_SET_ACTUATOR
then?
when i run with mavproxy, i controlled the aux1-8 with desired pwm value
Is DO_SET_SERVO the Ardupilot equivalent to MAV_CMD_DO_SET_ACTUATOR then?
That would be good to know.
Dear all,
I started to learn on this sdk, mange to figure out most of question. how can I control with Java, the pwm6-16, I mean, I want to send a signal to servo, for open/close the hook.
tried to look for it, didn't found it :(
zeev