Trait ev3dev_lang_rust::tacho_motor::TachoMotor [−][src]
pub trait TachoMotor: Motor { fn get_count_per_rot(&mut self) -> AttributeResult<isize> { ... } fn get_full_travel_count(&mut self) -> AttributeResult<isize> { ... } fn get_duty_cycle(&mut self) -> AttributeResult<isize> { ... } fn get_duty_cycle_sp(&mut self) -> AttributeResult<isize> { ... } fn set_duty_cycle_sp(&mut self, duty_cycle: isize) -> AttributeResult<()> { ... } fn get_polarity(&mut self) -> AttributeResult<String> { ... } fn set_polarity(&mut self, polarity: String) -> AttributeResult<()> { ... } fn get_position(&mut self) -> AttributeResult<isize> { ... } fn set_position(&mut self, position: isize) -> AttributeResult<()> { ... } fn get_hold_pid_kp(&mut self) -> AttributeResult<f32> { ... } fn set_hold_pid_kp(&mut self, kp: f32) -> AttributeResult<()> { ... } fn get_hold_pid_ki(&mut self) -> AttributeResult<f32> { ... } fn set_hold_pid_ki(&mut self, ki: f32) -> AttributeResult<()> { ... } fn get_hold_pid_kd(&mut self) -> AttributeResult<f32> { ... } fn set_hold_pid_kd(&mut self, kd: f32) -> AttributeResult<()> { ... } fn get_max_speed(&mut self) -> AttributeResult<isize> { ... } fn get_position_sp(&mut self) -> AttributeResult<isize> { ... } fn set_position_sp(&mut self, position_sp: isize) -> AttributeResult<()> { ... } fn get_speed(&mut self) -> AttributeResult<isize> { ... } fn set_speed(&mut self, speed: isize) -> AttributeResult<()> { ... } fn get_speed_sp(&mut self) -> AttributeResult<isize> { ... } fn set_speed_sp(&mut self, speed_sp: isize) -> AttributeResult<()> { ... } fn get_ramp_up_sp(&mut self) -> AttributeResult<isize> { ... } fn set_ramp_up_sp(&mut self, ramp_up_sp: isize) -> AttributeResult<()> { ... } fn get_ramp_down_sp(&mut self) -> AttributeResult<isize> { ... } fn set_ramp_down_sp(&mut self, ramp_down_sp: isize) -> AttributeResult<()> { ... } fn get_speed_pid_kp(&mut self) -> AttributeResult<f32> { ... } fn set_speed_pid_kp(&mut self, kp: f32) -> AttributeResult<()> { ... } fn get_speed_pid_ki(&mut self) -> AttributeResult<f32> { ... } fn set_speed_pid_ki(&mut self, ki: f32) -> AttributeResult<()> { ... } fn get_speed_pid_kd(&mut self) -> AttributeResult<f32> { ... } fn set_speed_pid_kd(&mut self, kd: f32) -> AttributeResult<()> { ... } fn get_state(&mut self) -> AttributeResult<Vec<String>> { ... } fn get_stop_action(&mut self) -> AttributeResult<String> { ... } fn set_stop_action(&mut self, stop_action: String) -> AttributeResult<()> { ... } fn get_time_sp(&mut self) -> AttributeResult<isize> { ... } fn set_time_sp(&mut self, time_sp: isize) -> AttributeResult<()> { ... } fn run_direct(&mut self) -> AttributeResult<()> { ... } }
Provided Methods
fn get_count_per_rot(&mut self) -> AttributeResult<isize>
fn get_full_travel_count(&mut self) -> AttributeResult<isize>
fn get_duty_cycle(&mut self) -> AttributeResult<isize>
fn get_duty_cycle_sp(&mut self) -> AttributeResult<isize>
fn set_duty_cycle_sp(&mut self, duty_cycle: isize) -> AttributeResult<()>
fn get_polarity(&mut self) -> AttributeResult<String>
fn set_polarity(&mut self, polarity: String) -> AttributeResult<()>
fn get_position(&mut self) -> AttributeResult<isize>
fn set_position(&mut self, position: isize) -> AttributeResult<()>
fn get_hold_pid_kp(&mut self) -> AttributeResult<f32>
fn set_hold_pid_kp(&mut self, kp: f32) -> AttributeResult<()>
fn get_hold_pid_ki(&mut self) -> AttributeResult<f32>
fn set_hold_pid_ki(&mut self, ki: f32) -> AttributeResult<()>
fn get_hold_pid_kd(&mut self) -> AttributeResult<f32>
fn set_hold_pid_kd(&mut self, kd: f32) -> AttributeResult<()>
fn get_max_speed(&mut self) -> AttributeResult<isize>
fn get_position_sp(&mut self) -> AttributeResult<isize>
fn set_position_sp(&mut self, position_sp: isize) -> AttributeResult<()>
fn get_speed(&mut self) -> AttributeResult<isize>
fn set_speed(&mut self, speed: isize) -> AttributeResult<()>
fn get_speed_sp(&mut self) -> AttributeResult<isize>
fn set_speed_sp(&mut self, speed_sp: isize) -> AttributeResult<()>
fn get_ramp_up_sp(&mut self) -> AttributeResult<isize>
fn set_ramp_up_sp(&mut self, ramp_up_sp: isize) -> AttributeResult<()>
fn get_ramp_down_sp(&mut self) -> AttributeResult<isize>
fn set_ramp_down_sp(&mut self, ramp_down_sp: isize) -> AttributeResult<()>
fn get_speed_pid_kp(&mut self) -> AttributeResult<f32>
fn set_speed_pid_kp(&mut self, kp: f32) -> AttributeResult<()>
fn get_speed_pid_ki(&mut self) -> AttributeResult<f32>
fn set_speed_pid_ki(&mut self, ki: f32) -> AttributeResult<()>
fn get_speed_pid_kd(&mut self) -> AttributeResult<f32>
fn set_speed_pid_kd(&mut self, kd: f32) -> AttributeResult<()>
fn get_state(&mut self) -> AttributeResult<Vec<String>>
fn get_stop_action(&mut self) -> AttributeResult<String>
fn set_stop_action(&mut self, stop_action: String) -> AttributeResult<()>
fn get_time_sp(&mut self) -> AttributeResult<isize>
fn set_time_sp(&mut self, time_sp: isize) -> AttributeResult<()>
fn run_direct(&mut self) -> AttributeResult<()>
Implementors
impl TachoMotor for LargeMotor
impl TachoMotor for MediumMotor