예제 #1
0
        private void Receiver()
        {
            frontSick = new SickSensor("Front");
            frontSick.Port = FRONTAL_SICK_PORT;
            frontSick.IsDebug = true;
            frontSick.Run();

            topSick = new SickSensor("Top");
            topSick.Port = TOP_SICK_PORT;
            topSick.IsDebug = false;
            topSick.Run();

            backSick = new SickSensor("Back");
            backSick.Port = BACK_SICK_PORT;
            backSick.IsDebug = false;
            backSick.Run();

            compassSensor = new CompassSensor("Compass");
            compassSensor.Port = COMPASS_PORT;
            compassSensor.IsDebug = false;
            compassSensor.Run();

            vehicleInfo = new VehicleInfo();
            vehicleInfo.Port = VEHICLE_INFO_PORT;
            vehicleInfo.IsDebug = false;
            vehicleInfo.Run();

            gpsSensor = new GPSSensor();
            gpsSensor.Port = GPS_PORT;
            gpsSensor.IsDebug = false;
            gpsSensor.Run();
        }
예제 #2
0
        private void Receiver()
        {
            frontSick         = new SickSensor("Front");
            frontSick.Port    = FRONTAL_SICK_PORT;
            frontSick.IsDebug = true;
            frontSick.Run();

            topSick         = new SickSensor("Top");
            topSick.Port    = TOP_SICK_PORT;
            topSick.IsDebug = false;
            topSick.Run();

            backSick         = new SickSensor("Back");
            backSick.Port    = BACK_SICK_PORT;
            backSick.IsDebug = false;
            backSick.Run();

            compassSensor         = new CompassSensor("Compass");
            compassSensor.Port    = COMPASS_PORT;
            compassSensor.IsDebug = false;
            compassSensor.Run();

            vehicleInfo         = new VehicleInfo();
            vehicleInfo.Port    = VEHICLE_INFO_PORT;
            vehicleInfo.IsDebug = false;
            vehicleInfo.Run();

            gpsSensor         = new GPSSensor();
            gpsSensor.Port    = GPS_PORT;
            gpsSensor.IsDebug = false;
            gpsSensor.Run();
        }