public StationDataCollector(int zoneId, double windSpeed, double windDirection) { this.zoneId = zoneId; this.dataLables = new string[] { "wind speed", "wind direction", "sin wind direction", "cos wind direction" }; this.dataValues = new double[] { windSpeed, windDirection, Math.Sin(MyMaths.DegreeToRadian(windDirection)), Math.Cos(MyMaths.DegreeToRadian(windDirection)) }; this.dateTimeCollected = DateTime.Now.ToString(); }
public ScoutDataCollector(double longitude, double latitude, double windSpeed, double windDirection) { this.longitude = longitude; this.latitude = latitude; this.dataLables = new string[] { "wind speed", "wind direction", "sin wind direction", "cos wind direction" }; this.dataValues = new double[] { windSpeed, windDirection, Math.Sin(MyMaths.DegreeToRadian(windDirection)), Math.Cos(MyMaths.DegreeToRadian(windDirection)) }; this.dateTimeCollected = DateTime.Now.ToString(); }