We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc5817 commit 585c826Copy full SHA for 585c826
src/device/xl330.rs
@@ -115,14 +115,14 @@ pub mod conv {
115
///
116
/// Works for present_current instance
117
pub fn dxl_current_to_ma(current: i16) -> f32 {
118
- current as f32 * 2.69
+ current as f32 * 1.0
119
}
120
/// Current (mA) to dynamixel current
121
122
/// It should be in [-current_limit, +current_limit] with an absolute max at 1193 (3209.17mA)
123
/// Works for goal_current for instance
124
pub fn ma_to_dxl_current(current: f32) -> i16 {
125
- (current / 2.69) as i16
+ (current / 1.0) as i16
126
127
128
/// Dxl Temperature (°C)
0 commit comments