Gimbal Control
629 3 2020-7-30
Uploading and Loding Picture ...(0/1)
o(^-^)o
Milhouse1234
lvl.3

Denmark
Offline

Hi,

I'm trying to control the gimbal but the rosservice doesn't seem to be working properly. No matter my inputs, the angle output and the "time" argument do not seem to correspond. Screenshot from 2020-07-30 11-24-12.png

Is it maybe necessary to recalibrate? If so, how do I do it?
Also, what is the "rotationMode" argument used for? I've tried changing the values but it never gave me an error and didn't seem to make a difference in the output.

Setup:
OSDK 4.0 (not the master)
M210 RTK v2
Zenmuse XT2

Thanks in advance,
Lucas
2020-7-30
Use props
kv886
lvl.4

Hong Kong
Offline

It may be that the coordinate system is different. The coordinate system for setting the rotation angle is the body coordinate system. But if you get the attitude of the gimbal the  coordinate system is Ground coordinate system.
2020-7-31
Use props
Milhouse1234
lvl.3

Denmark
Offline

That might be it.. Thanks for the help
2020-8-3
Use props
Milhouse1234
lvl.3

Denmark
Offline

kv886 Posted at 7-31 00:36
It may be that the coordinate system is different. The coordinate system for setting the rotation angle is the body coordinate system. But if you get the attitude of the gimbal the  coordinate system is Ground coordinate system.

Even if that were true, it wouldn't explain how I asked it to turn 10º and it moved 30. Also, it moved mostly in the yaw frame when I asked for pitch movement.
Not to mention the time requested was much longer than the time for execution.
It's too weird
Edit: Nevermind, I see what I did wrong there.
2020-8-4
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules