Esempio n. 1
0
 /// <summary>
 /// Contructor, Creates a new instance of the Gps Object according to the given Parameters
 /// </summary>
 /// <param name="name">Name of the Object</param>
 /// <param name="port">Serial port e.g. Com1 or /dev/ttyUSB0</param>
 /// <param name="baud">Speed in baud, eg. 56700</param>
 public GPS(string name, string port, int baud)
     : base(name, port)
 {
     this.baud            = baud;
     this.port            = port;
     device               = new GpsDevice(this);
     values               = device.values;
     values.ValueChanged += new MonitoredDictionary <string, UAVSingleParameter> .ValueChangedHandler(gpsValues_ValueChanged);
 }
Esempio n. 2
0
 /// <summary>
 /// Contructor, Creates a new instance of the Gps Object according to the given Parameters
 /// </summary>
 /// <param name="name">Name of the Object</param>
 /// <param name="port">Serial port e.g. Com1 or /dev/ttyUSB0</param>
 /// <param name="baud">Speed in baud, eg. 56700</param>
 public GPS(string name, string port, int baud)
     : base(name, port)
 {
     this.baud = baud;
     this.port = port;
     device = new GpsDevice(this);
     values = device.values;
     values.ValueChanged += new MonitoredDictionary<string, UAVSingleParameter>.ValueChangedHandler(gpsValues_ValueChanged);
 }