1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
use super::MotorPort; use crate::{wait, Attribute, Device, Driver, Ev3Error, Ev3Result}; use std::time::Duration; /// EV3/NXT large servo motor #[derive(Debug, Clone, Device)] pub struct LargeMotor { driver: Driver, } impl LargeMotor { fn new(driver: Driver) -> Self { Self { driver, } } findable!( "tacho-motor", "lego-ev3-l-motor", MotorPort, "LargeMotor", "out" ); tacho_motor!(); }