Mats Bohlinsson
Second Officer
Flight distance : 1838077 ft
Sweden
Offline
|
z37soft Posted at 6-7 17:28
As long as we are using the SDK, we think it is impossible.
I sent a similar question to DJI a year ago, and it seems that DJI Go4 achieves this exceptionally, but the SDK does not.
Thats not my findnings.
But I only use mini2 nowadays. I will check this on my air2 next time I do a testflight.
In PGPS you cant change the yaw of the gimbal, the ac yaw is affected instead.
The only way around this, is to set the gimbal in free mode. For that you have to bypass the sdk, for some strange reason dji wont expose that mode, which is a shame. Or enter VS-mode
I run the code below when doing mapping. It changes the yaw and pitch every second. Dead stable.
Though I havnt used my air2 for a while so I will check that. What FW are you on? Can you show any code that have this behaivor. I might have a solution for you.
attitude = [(0, -75, 0), (0, -85, 0), (-20, -85, 0), (20, -85, 0)]
while api.private.loop_wait(interval-gimbal_delay, ):
loop_nbr+=1
yaw, pitch, roll = attitude[loop_nbr%len(attitude)]
api.drone.set_gimbal_angle(yaw, pitch, roll, time=0.0)
time.sleep(1.0)
api.drone.photo_fast() |
|