I’m trying to connect a Tarot TL3T05 gimbal to a Pixhawk 4 .I only need to control the pitch, so I connected the PWM pitch input of the gimbal to the first and last pin of “FMU PWM OUT”. In PX4, I set the MNT_
parameters accordingly. See my full parameter list here.
Also, a Raspberry 4 is connected as companion computer via TELEM.
Now I got 2 problems:
-
For some reason, the gimbal always tries to pitch down when connected.
-
For testing a gimbal, I usually run the MAVSDK gimbal example, substituting the SITL system address (
udp://:14540
) with mine (serial:///dev/serial0:921600
).
Running the example produces the following error message:
Traceback (most recent call last):
File “gimbal.py”, line 61, in
asyncio.run(run())
File “/usr/lib/python3.7/asyncio/runners.py”, line 43, in run
return loop.run_until_complete(main)
File “/usr/lib/python3.7/asyncio/base_events.py”, line 584, in run_until_complete
return future.result()
File “gimbal.py”, line 23, in run
await drone.gimbal.set_mode(GimbalMode.YAW_FOLLOW)
File “/home/pi/venv_mission/lib/python3.7/site-packages/mavsdk/gimbal.py”, line 484, in set_mode
raise GimbalError(result, “set_mode()”, gimbal_mode)
mavsdk.gimbal.GimbalError: TIMEOUT: ‘Timeout’; origin: set_mode(); params: (<GimbalMode.YAW_FOLLOW: 0>,)
This gimbal was already successfully connected to a Pixhawk 6c, so it should be working.