Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add VESC telemetry message type
  • Loading branch information
Michael Boulet committed Nov 28, 2015
1 parent c271b39 commit 77a631c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vesc_driver/CMakeLists.txt
Expand Up @@ -9,7 +9,7 @@ find_package(catkin REQUIRED COMPONENTS
)

catkin_package(
INCLUDE_DIRS include
# INCLUDE_DIRS include
CATKIN_DEPENDS nodelet pluginlib roscpp vesc_msgs
)

Expand Down
5 changes: 4 additions & 1 deletion vesc_msgs/CMakeLists.txt
Expand Up @@ -2,17 +2,20 @@ cmake_minimum_required(VERSION 2.8.3)
project(vesc_msgs)

find_package(catkin REQUIRED COMPONENTS
std_msgs
message_generation
)

add_message_files(
DIRECTORY msg
FILES
VescTelemetry.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)

catkin_package(
CATKIN_DEPENDS message_runtime
CATKIN_DEPENDS std_msgs message_runtime
)
25 changes: 25 additions & 0 deletions vesc_msgs/msg/VescTelemetry.msg
@@ -0,0 +1,25 @@
# Vedder VESC open source motor controller telemetry

# fault codes
int32 FAULT_CODE_NONE=0
int32 FAULT_CODE_OVER_VOLTAGE=1
int32 FAULT_CODE_UNDER_VOLTAGE=2
int32 FAULT_CODE_DRV8302=3
int32 FAULT_CODE_ABS_OVER_CURRENT=4
int32 FAULT_CODE_OVER_TEMP_FET=5
int32 FAULT_CODE_OVER_TEMP_MOTOR=6

Header header
float32 voltage_input # input voltage (volt)
float32 temperature_pcb # temperature of printed circuit board (degrees Celsius)
float32 current_motor # motor current (ampere)
float32 current_input # input current (ampere)
float32 speed # motor electrical speed (revolutions per minute)
float32 duty_cycle # duty cycle (0 to 1)
float32 charge_drawn # electric charge drawn from input (ampere-hour)
float32 charge_regen # electric charge regenerated to input (ampere-hour)
float32 energy_drawn # energy drawn from input (watt-hour)
float32 energy_regen # energy regenerated to input (watt-hour)
int32 displacement # net tachometer (counts)
int32 distance_traveled # total tachnometer (counts)
int32 fault_code
2 changes: 2 additions & 0 deletions vesc_msgs/package.xml
Expand Up @@ -16,8 +16,10 @@

<buildtool_depend>catkin</buildtool_depend>

<build_depend>std_msgs</build_depend>
<build_depend>message_generation</build_depend>

<run_depend>std_msgs</run_depend>
<run_depend>message_runtime</run_depend>

</package>

0 comments on commit 77a631c

Please sign in to comment.