public SensorModel(SensorSpecifications sensorSpecifications, NavigationMap map, Vector3 startPosition, Quaternion startOrientation) { _sensorSpecifications = sensorSpecifications; Console.WriteLine("Using sensors:\n" + sensorSpecifications); // Instantiate sensors and populate properties and sensor list const bool isPerfect = false; _sensors = new List<ISensor> { (GPS = new GPS(sensorSpecifications, isPerfect, true)), (IMU = new IMU(sensorSpecifications, startOrientation, isPerfect)), (Magnetometer = new Magnetometer3Axis(sensorSpecifications, isPerfect)), (GroundRangeFinder = new SonicRangeFinder(sensorSpecifications, isPerfect, map)), (PressureGauge = new StaticPressureGauge(sensorSpecifications, isPerfect)), }; }
public SensorModel(SensorSpecifications sensorSpecifications, NavigationMap map, Vector3 startPosition, Quaternion startOrientation) { _sensorSpecifications = sensorSpecifications; Console.WriteLine("Using sensors:\n" + sensorSpecifications); // Instantiate sensors and populate properties and sensor list const bool isPerfect = false; _sensors = new List <ISensor> { (GPS = new GPS(sensorSpecifications, isPerfect, true)), (IMU = new IMU(sensorSpecifications, startOrientation, isPerfect)), (Magnetometer = new Magnetometer3Axis(sensorSpecifications, isPerfect)), (GroundRangeFinder = new SonicRangeFinder(sensorSpecifications, isPerfect, map)), (PressureGauge = new StaticPressureGauge(sensorSpecifications, isPerfect)), }; }