pub struct RobotConfig {
pub left_motor_factor: f32,
pub right_motor_factor: f32,
pub left_motor: Motor,
pub right_motor: Motor,
pub adjustment_step: f32,
pub adjustment_interval: Duration,
}Expand description
Fields§
§left_motor_factor: f32Factor applied to the left motor speed (use -1.0 to reverse polarity).
right_motor_factor: f32Factor applied to the right motor speed (use -1.0 to reverse polarity).
left_motor: MotorWhich motor is the left motor.
right_motor: MotorWhich motor is the right motor.
adjustment_step: f32Speed adjustment step per tick (controls ramp smoothness).
adjustment_interval: DurationInterval between motor adjustment ticks.
Trait Implementations§
Source§impl Clone for RobotConfig
impl Clone for RobotConfig
Source§impl Debug for RobotConfig
impl Debug for RobotConfig
Auto Trait Implementations§
impl Forget for RobotConfig
impl Freeze for RobotConfig
impl RefUnwindSafe for RobotConfig
impl Send for RobotConfig
impl Sync for RobotConfig
impl Unpin for RobotConfig
impl UnsafeUnpin for RobotConfig
impl UnwindSafe for RobotConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more