Skip to content

Commit 6ea1cd7

Browse files
authored
Merge pull request #63 from AutoModality/AM-822/gimbal-control
feat: gimbal control message
2 parents 8452a0f + 354cabc commit 6ea1cd7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

brain_box_msgs/msg/Gimbal.msg

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
#how long should it take to get to the target
1+
Header header
2+
3+
# ts is the time it takes to achieve the desired angle,
4+
# so the shorter the time, the faster the gimbal rotates.
25
int32 ts
36

7+
# Mode is 1 byte size:
8+
# Bit #: | Set to 0: | Set to 1:
9+
# ----------- | ------------------------------------- | -------------------------------------
10+
# bit 0 | Incremental control, | Absolute control,
11+
# | the angle reference is the | the angle reference is
12+
# | current Gimbal location | related to configuration in DJI Go App
13+
# bit 1 | Gimbal will follow the command in Yaw | Gimbal will maintain position in Yaw
14+
# bit 2 | Roll invalid bit, the same as bit[1] | Roll invalid bit, the same as bit[1]
15+
# bit 3 |Pitch invalid bit, the same as bit[1] | Pitch invalid bit, the same as bit[1]
16+
# bit [4:7] | bit [4:7]: reserved, set to be 0 |
417
int32 mode
518

619
string cmd

0 commit comments

Comments
 (0)