So, I recently discovered how to control my strom32 gimbal controller via a python script ran in Mission Planner. My code functions correctly and moves the gimbal to the desired angle. However, as of now the gimbal position doesn’t change until almost a whole 2 seconds after the MAV.setMountControl or Script.SendRC commands are executed in the python script running in Mission Planner. This is a huge problem for me because I am using my video camera’s video feed to target a releasable payload.
If anyone knows of a way to decrease this delay by as much as possible, please let me know!
Mission Planner ArduPlane:
Using MAV.setMountControl: Pixhawk 2 -> Serial Port 2 -> UART Port on Strom32
Usage in Mission Planner Python script:
MAV.setMountControl( PitchValue, RollValue, YawValue, False)
Using servo pins with Script.SendRC: Pixhawk 2 -> Selected Servo Pin # -> Strom32 RC2 Port
Usage in Mission Planner Python script: Script.SendRC(8,parmValue,True)
P.S.: I only want to control the Pitch of my gimbal via Mission Planner, while using the gimbal’s sensor for roll.