Ejemplo n.º 1
0
 /// <summary>
 /// Initial sensor array to represent all the sensors available at the program start
 /// </summary>
 /// <returns></returns>
 public static List<Sensor> InitSensorList()
 {
     // DEFAULT SENSORS AVAILABLE - maybe store in a collection
     Sensor s1 = new Sensor("laser range finder", SensorDataType.Digital, 10);
     Sensor s2 = new Sensor("distance sensor", SensorDataType.Digital, 20);
     Sensor s3 = new Sensor("force sensor", SensorDataType.Analog, 30);
     Sensor s4 = new Sensor("accelerometer", SensorDataType.Digital, 40);
     Sensor s5 = new Sensor("random", SensorDataType.Digital, 50);
     Sensor s6 = new Sensor("NT sensor", SensorDataType.Digital, 60);
     List<Sensor> SensorList = new List<Sensor>() { s1, s2, s3, s4, s5, s6 };
     return SensorList;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// -Add a sensor to this rover's _sensorList
 /// </summary>
 public void AddSensor(Sensor sensor)
 {
     this._sensorList.Add(sensor);
 }