1 2 3 4 5 6 7 8 9 10 11
use crate::motors::{Motor, TachoMotor}; use crate::{Attribute, Device, Driver, Ev3Result, Findable}; /// EV3 medium servo motor #[derive(Debug, Clone, Device, Findable, Motor, TachoMotor)] #[class_name = "tacho-motor"] #[driver_name = "lego-ev3-m-motor"] #[port = "crate::motors::MotorPort"] pub struct MediumMotor { driver: Driver, }