Skip to content

Commit

Permalink
Add set motor current msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
jgomezgadea committed Nov 18, 2021
1 parent 4c1f7af commit 7091c1e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ add_message_files(DIRECTORY msg
BatteryDockingStatusStamped.msg
BoolArray.msg
MotorPID.msg
MotorCurrent.msg
Pose2DArray.msg
Pose2DStamped.msg
ReturnMessage.msg
Expand Down Expand Up @@ -103,6 +104,7 @@ add_service_files(
SetString.srv
GetPTZ.srv
SetByte.srv
SetCurrent.srv
SetTransform.srv
)

Expand Down
7 changes: 7 additions & 0 deletions msg/MotorCurrent.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# either can_id or name are set
# if can_id is -1, then this refers to all motors.
int32[] can_id
string[] name
float32[] continuous_current_limit # Amperes
float32[] current_peak_time # Seconds
float32[] current_peak_limit # Amperes
4 changes: 4 additions & 0 deletions srv/SetCurrent.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
MotorCurrent current
---
bool success
string message

0 comments on commit 7091c1e

Please sign in to comment.