protected override bool GetDataPoint( LogRow data, out float xValue, out float yValue, out float zValue, out string zName) { xValue = 0; yValue = 0; zValue = 0; zName = "Not supported"; if (!supported) { return(false); } try { LogColumn xColumn = data.GetColumn("P8"); LogColumn yColumn = data.GetColumn("P13"); LogColumn zColumn = data.GetColumn("P25"); xValue = (float)xColumn.ValueAsDouble; yValue = (float)yColumn.ValueAsDouble; zValue = (float)zColumn.ValueAsDouble; zName = zColumn.Conversion.Units; } catch (InvalidOperationException) { supported = false; return(false); } return(true); }
protected override void GetDataPoint( LogRow data, out double xValue, out double yValue, out string xName, out string yName) { xName = "MAF"; yName = "Sensor / Target"; xValue = 0; yValue = 0; if (!supported) { return; } try { LogColumn xColumn = data.GetColumn(this.xParameterName); xValue = xColumn.ValueAsDouble; LogColumn ySensorColumn = data.GetColumn(this.yParameterName); LogColumn yTargetColumn = data.GetColumn(this.desiredAfrParameterName); yValue = ySensorColumn.ValueAsDouble / yTargetColumn.ValueAsDouble; } catch (InvalidOperationException) { supported = false; } }
/// <summary> /// Get a data point for the heat map /// </summary> protected override bool GetDataPoint( LogRow data, out float xValue, out float yValue, out float zValue, out string zName) { try { LogColumn x = data.GetColumn(this.xParameterName); LogColumn y = data.GetColumn(this.yParameterName); LogColumn z = data.GetColumn(this.zParameterName); xValue = (float)x.ValueAsDouble; yValue = (float)y.ValueAsDouble; zValue = (float)z.ValueAsDouble; zName = z.Conversion.Units; } catch (InvalidOperationException) { xValue = -1; yValue = -1; zValue = 0; zName = "Disabled"; } return(true); }
protected override void GetDataPoint( LogRow data, out double xValue, out double yValue, out string xName, out string yName) { LogColumn x = data.GetColumn(this.xParameterName); LogColumn y = data.GetColumn(this.yParameterName); xValue = x.ValueAsDouble / 453.6d * 60d; // g/s to lb/min yValue = y.ValueAsDouble; // TODO: calc from actual atmos pressure xName = "lb/min"; yName = "PR"; }
protected override void GetDataPoint( LogRow data, out double xValue, out double yValue, out string xName, out string yName) { LogColumn x = data.GetColumn(this.xParameterName); LogColumn y = data.GetColumn(this.yParameterName); xValue = x.ValueAsDouble; yValue = y.ValueAsDouble; xName = x.Conversion.Units; yName = y.Conversion.Units; }
/// <summary> /// Get a data point for the heat map /// </summary> protected override bool GetDataPoint( LogRow data, out float xValue, out float yValue, out float zValue, out string zName) { LogColumn x = data.GetColumn(this.xParameterName); LogColumn y = data.GetColumn(this.yParameterName); LogColumn z = data.GetColumn(this.zParameterName); xValue = (float)x.ValueAsDouble; yValue = (float)y.ValueAsDouble; zValue = (float)z.ValueAsDouble; zName = z.Conversion.Units; return(true); }