updated v1 protocol

This commit is contained in:
Ruixiang Du
2021-07-09 21:22:56 +08:00
parent 0f6ce71313
commit 0565639c8f
19 changed files with 227420 additions and 290 deletions

View File

@@ -43,7 +43,7 @@ typedef struct {
} LightOperation;
typedef struct {
bool cmd_ctrl_allowed;
bool enable_cmd_ctrl;
LightOperation front_light;
LightOperation rear_light;
} LightCommandMessage;

View File

@@ -40,13 +40,13 @@ struct RangerLightCmd {
RangerLightCmd() = default;
RangerLightCmd(LightMode f_mode, uint8_t f_value, LightMode r_mode,
uint8_t r_value)
: cmd_ctrl_allowed(true),
: enable_cmd_ctrl(true),
front_mode(f_mode),
front_custom_value(f_value),
rear_mode(r_mode),
rear_custom_value(r_value) {}
bool cmd_ctrl_allowed = false;
bool enable_cmd_ctrl = false;
LightMode front_mode;
uint8_t front_custom_value;
LightMode rear_mode;

View File

@@ -38,11 +38,11 @@ struct TracerMotionCmd {
struct TracerLightCmd {
TracerLightCmd() = default;
TracerLightCmd(LightMode f_mode, uint8_t f_value)
: cmd_ctrl_allowed(true),
: enable_cmd_ctrl(true),
front_mode(f_mode),
front_custom_value(f_value) {}
bool cmd_ctrl_allowed = false;
bool enable_cmd_ctrl = false;
LightMode front_mode;
uint8_t front_custom_value;
};