From be2bd87772c0e57e707b30d92cf2108b46a26833 Mon Sep 17 00:00:00 2001 From: Steve Nguyen Date: Thu, 26 Sep 2024 13:32:43 +0000 Subject: [PATCH] Update xm.rs --- src/device/xm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/xm.rs b/src/device/xm.rs index 7b08dcb..f25a926 100644 --- a/src/device/xm.rs +++ b/src/device/xm.rs @@ -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 }