Skip to content

Commit

Permalink
Update xm.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveNguyen authored Sep 26, 2024
1 parent 1e5b6f7 commit be2bd87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/xm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub mod conv {
///
/// It should be in [-current_limit, +current_limit] with an absolute max at 1193 (3209.17mA)
/// Works for goal_current for instance
pub fn current_to_dxl_ma(current: f32) -> i16 {
pub fn ma_to_dxl_current(current: f32) -> i16 {
(current / 2.69) as i16
}

Expand Down

0 comments on commit be2bd87

Please sign in to comment.