major revision

This commit is contained in:
Ruixiang Du
2019-07-08 22:24:51 -04:00
parent 6f5b7087a2
commit 727b0a2b05
97 changed files with 5058 additions and 832 deletions

View File

@@ -0,0 +1,10 @@
uint8 LIGHT_CONST_OFF = 0
uint8 LIGHT_CONST_ON = 1
uint8 LIGHT_BREATH = 2
uint8 LIGHT_CUSTOM = 3
bool enable_cmd_light_control
uint8 front_mode
uint8 front_custom_value
uint8 rear_mode
uint8 rear_custom_value

View File

@@ -0,0 +1,2 @@
uint8 mode
uint8 custom_value

View File

@@ -0,0 +1,3 @@
float64 current
float64 rpm
float64 temperature

View File

@@ -0,0 +1,27 @@
Header header
int8 MOTOR_ID_FRONT_RIGHT = 0
int8 MOTOR_ID_FRONT_LEFT = 1
int8 MOTOR_ID_REAR_RIGHT = 2
int8 MOTOR_ID_REAR_LEFT = 3
int8 LIGHT_ID_FRONT = 0
int8 LIGHT_ID_REAR = 1
# motion state
float64 linear_velocity
float64 angular_velocity
# base state
uint8 base_state
uint8 control_mode
uint16 fault_code
float64 battery_voltage
# motor state
ScoutMotorState[4] motor_states
# light state
bool light_control_enabled
ScoutLightState front_light_state
ScoutLightState rear_light_state