I want to control my bluerov in Manual mode using channel override, but I can’t find the Channel that increase/decrease the gain. On the logitech joystick it is mapped to the up/down arrow, but I can’t see which channels are modified on the Analyze tool of QGroundControl.
Is there a diagram showing the full mapping of channel/button somewhere? If that isn’t mapped on an RC channel, how can I change it programmatically (using the usual libraries such as pymavlink, DroneKit or mavros)?
Regarding this question, it is not clear to me how to change the gain from mavros just as we do from QGroundControl.
I’m using bluerov_ros_playground package, and I want to modify it to add the functionality of changing the gain. This raises two questions for me:
Since the manual_control message has pitch, yaw, etc. parameters, would it conflict with the rc_override message used to command the robot?
How’s the button function (BTNn_SFUNCTION) , related with the manual_control message? There are axis fields and a buttons field. But it seems to only publish the state of the buttons. Or maybe it is that you have to write the value of the BTNn_SFUNCTION command ( f.e. 42 for increasing the gain) on the ‘buttons’ field of MANUAL_CONTROL?
So, If I want to change the gain from pymavlink, I have to push the button in the joystick that I previously assigned to the change of gain (from QGroundControl), and then just send a MANUAL_CONTROL message to the BlueROV with the state of the buttons?