public ForeverLoop(IWheel wheels) : base(wheels) { Details = new StudentLogicDescription { Title = "WHEEL ", Author = "BO19E-15", Description = "Simple wheel control using for-loops" }; this._wheels = wheels; }
public Distance(IWheel wheels, IEncoders encoders) : base(wheels) { Details = new StudentLogicDescription { Title = "Encoder ", Author = "BO19E-15", Description = "Simple encoder control using if-statement" }; this._wheels = wheels; this._encoders = encoders; }
public WallAndBack(IWheel wheel, IEncoders encoders, IUltrasonic ultrasonic) : base(wheel) { Details = new StudentLogicDescription { Title = "Ultrasonic and Encoder ", Author = "BO19E-15", Description = "Simple control logic using encoder and ultrasonic" + "\n Drive to a wall, turn around and drive back" }; this._wheel = wheel; this._encoders = encoders; this._ultrasonic = ultrasonic; }
public SteerBlindlyToLargestDistance(IWheel wheel, ILidarDistance lidar) : base(wheel) { Details = new StudentLogicDescription { Title = "LIDAR - Steer to greatest distance", Author = "BO19E-15", Description = "Uses LIDAR to detect largest distance in front sector, and steers towards it (without gyro).\n" + "NB: " + "Does not check for obstructions on side (or in front)." + "Will steer blindly towards greatest distance" }; _wheels = wheel; _lidar = lidar; }
public Student2B(IWheel wheel, IEncoders encoders, ILidarDistance lidar, IUltrasonic ultrasonic) : base(wheel) { Details = new StudentLogicDescription { Title = "Empty logic for Student 2 (B)", Author = "Student 2", Description = "This program is empty.\n" + "Write your control logic in the looping Run() method.\n" + "(And change Title, Author and Description).\n" + $"All this is done in the {nameof(Student2B)}.cs file." }; _wheels = wheel; _lidar = lidar; _ultrasonic = ultrasonic; _encoders = encoders; }