Struct rex_ucph::Arlo[][src]

pub struct Arlo {
    pub speed: Option<u8>,
    pub turn_speed: Option<u8>,
    pub step_time: Option<usize>,
    pub turn_time: Option<usize>,
    // some fields omitted
}

Fields

Methods

impl Arlo
[src]

Start left motor with motor power powerLeft (in [0;127]) and direction dirLeft (0=reverse, 1=forward) and right motor with motor power powerRight (in [0;127]) and direction dirRight (0=reverse, 1=forward).

NOTE: Does NOT use wheel encoders.

Send a stop command to stop motors. Sets the motor power on both wheels to zero.

NOTE: Does NOT use wheel encoders.

Send a go command for continuous forward driving using the wheel encoders

Send a backward command for continuous reverse driving using the wheel encoders

Send a rotate left command for continuous rotating left using the wheel encoders

Send a rotate right command for continuous rotating right using the wheel encoders

Send a step forward command for driving forward using the wheel encoders for a predefined amount of time

Send a step backward command for driving backward using the wheel encoders for a predefined amount of time

Send a step rotate left command for rotating left using the wheel encoders for a predefined amount of time

Send a step rotate right command for rotating right using the wheel encoders for a predefined amount of time

Read the front sonar ping sensor and return the measured range in milimeters [mm]

Read the back sonar ping sensor and return the measured range in milimeters [mm]

Read the left sonar ping sensor and return the measured range in milimeters [mm]

Read the right sonar ping sensor and return the measured range in milimeters [mm]

Speed must be a value in the range [0; 255]. This speed is used in commands based on using the wheel encoders.

Turnspeed must be a value in the range [0; 255]. This speed is used in commands based on using the wheel encoders.

steptime is the amount of miliseconds used in the step_forward and step_backwards commands.

turntime is the amount of miliseconds used in the step_rotate_left and step_rotate_right commands.

Reads the left wheel encoder counts since last reset_encoder_counts command. The encoder has 144 counts for one complete wheel revolution.

Reads the right wheel encoder counts since last clear reset_encoder_counts command. The encoder has 144 counts for one complete wheel revolution.

Reset the wheel encoder counts.

Trait Implementations

impl Drop for Arlo
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for Arlo

impl Sync for Arlo