I have some questions about the Send Manual Control example code: https://www.ardusub.com/developers/pymavlink.html#send-manual-control
master.mav.manual_control_send( master.target_system, 500, -500, 250, 500, 0) # To active button 0 (first button), 3 (fourth button) and 7 (eighth button) # It's possible to check and configure this buttons in the Joystick menu of QGC buttons = 1 + 1 << 3 + 1 << 7 master.mav.manual_control_send( master.target_system, 0, 0, 0, 0, buttons)
What is the purpose of “buttons” in this code? My current goal is to be able to write and run a python program on my laptop to move the tethered ROV2 without QGroundControl or my XBox controller. I did some reading and what I found was that buttons is " A bitfield corresponding to the joystick buttons’ current state". That doesn’t mean a whole lot to me. Can someone please explain to me what is happening in that example code?