Skip to content

Commit

Permalink
Fix the switch of gimbal mode in autonomous mode
Browse files Browse the repository at this point in the history
  • Loading branch information
charmyoung committed May 10, 2019
1 parent b1a6a6a commit d4da472
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roborts_base/roborts_sdk/protocol/protocol_define.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ typedef struct {
} cmd_gimbal_info;

#define CMD_SET_GIMBAL_MODE (0X02u)
typedef enum {
GYRO_CONTROL,
typedef enum: uint8_t {
CODE_CONTROL,
GYRO_CONTROL,
G_MODE_MAX_NUM,
} gimbal_mode_e;

Expand All @@ -158,7 +158,7 @@ typedef struct{
} cmd_fric_wheel_speed;

#define CMD_SET_SHOOT_INFO (0x05u)
typedef enum {
typedef enum: uint8_t {
SHOOT_STOP = 0,
SHOOT_ONCE,
SHOOT_CONTINUOUS,
Expand Down

0 comments on commit d4da472

Please sign in to comment.