pub struct MaxAcCurrentCommand(/* private fields */);Implementations§
Source§impl MaxAcCurrentCommand
impl MaxAcCurrentCommand
Sourcepub const fn max_current_ac_target(&self) -> f32
pub const fn max_current_ac_target(&self) -> f32
This value determines the maximum allowable drive current on the AC side
With this function you are able maximize the maximum torque on the motor. The value must be multiplied by 10 before sending
Units: A
Bits: 0..16
Sourcepub const fn with_max_current_ac_target_checked(
self,
value: f32,
) -> Result<Self, ()>
pub const fn with_max_current_ac_target_checked( self, value: f32, ) -> Result<Self, ()>
This value determines the maximum allowable drive current on the AC side
With this function you are able maximize the maximum torque on the motor. The value must be multiplied by 10 before sending
Units: A
Bits: 0..16
Sourcepub const fn with_max_current_ac_target(self, value: f32) -> Self
pub const fn with_max_current_ac_target(self, value: f32) -> Self
This value determines the maximum allowable drive current on the AC side
With this function you are able maximize the maximum torque on the motor. The value must be multiplied by 10 before sending
Units: A
Bits: 0..16
Sourcepub const fn set_max_current_ac_target(&mut self, value: f32)
pub const fn set_max_current_ac_target(&mut self, value: f32)
This value determines the maximum allowable drive current on the AC side
With this function you are able maximize the maximum torque on the motor. The value must be multiplied by 10 before sending
Units: A
Bits: 0..16
Sourcepub const fn set_max_current_ac_target_checked(
&mut self,
value: f32,
) -> Result<(), ()>
pub const fn set_max_current_ac_target_checked( &mut self, value: f32, ) -> Result<(), ()>
This value determines the maximum allowable drive current on the AC side
With this function you are able maximize the maximum torque on the motor. The value must be multiplied by 10 before sending
Units: A
Bits: 0..16
Source§impl MaxAcCurrentCommand
impl MaxAcCurrentCommand
Sourcepub fn try_with_max_current_ac_target(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_max_current_ac_target(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_max_current_ac_target but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_max_current_ac_target(
&mut self,
v: f32,
) -> Result<(), OutOfRange>
pub fn try_set_max_current_ac_target( &mut self, v: f32, ) -> Result<(), OutOfRange>
Like Self::set_max_current_ac_target but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for MaxAcCurrentCommand
impl Clone for MaxAcCurrentCommand
Source§fn clone(&self) -> MaxAcCurrentCommand
fn clone(&self) -> MaxAcCurrentCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more