public MissionDevelopment()
        {
            _httpListener = new HttpListener();
            _httpListener.Prefixes.Add("http://*:8080/");

            _vehicle        = new Vehicle(Constants.MOTOR_LEFT_PORT, Constants.MOTOR_RIGHT_PORT);
            _hefVork        = new Hefvork(Constants.HEFVORK_MOTOR_PORT, Constants.HEFVORK_STOP_SENSOR_PORT);
            _vehiclePrecise = new VehiclePrecise();
        }
Example #2
0
        public static void Main(string[] args)
        {
            var vp = new VehiclePrecise();

            vp.Forward(50, 2000);

            return;

            MissionDevelopment dev = new MissionDevelopment();

            dev.Start();

            return;

            IMission[] missions = { new Mission1() };

            foreach (var mission in missions)
            {
                CurrentLogger.Logger.info($"Starting mission {mission.Name}");
                MissionRunner.Run(mission);
            }
        }
Example #3
0
 public Mission1()
 {
     _vehicle = new VehiclePrecise();
 }