Merge branch 'dev_environment' of gitlab.com:brandx/bxt-app into dev_environment
This commit is contained in:
commit
b63724fbfd
2 changed files with 11 additions and 0 deletions
|
|
@ -170,6 +170,7 @@ export function dragerGasDongle(subtype: number = 0): ComponentTypeExtension {
|
|||
let firstTime: Moment | undefined;
|
||||
let lastTime: Moment | undefined;
|
||||
let valMap: Map<number, number[]> = new Map<number, number[]>();
|
||||
if(measurement.type === quack.MeasurementType.MEASUREMENT_TYPE_PPM){
|
||||
measurement.values.forEach((vals, i) => {
|
||||
let avgVals: Point[] = [];
|
||||
let newLineData: LineData = {
|
||||
|
|
@ -205,6 +206,14 @@ export function dragerGasDongle(subtype: number = 0): ComponentTypeExtension {
|
|||
valMap = new Map<number, number[]>();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
chartData = simpleLineChartData(
|
||||
quack.ComponentType.COMPONENT_TYPE_DRAGER_GAS_DONGLE,
|
||||
measurement,
|
||||
smoothingAverages,
|
||||
filters
|
||||
);
|
||||
}
|
||||
} else {
|
||||
chartData = simpleLineChartData(
|
||||
quack.ComponentType.COMPONENT_TYPE_DRAGER_GAS_DONGLE,
|
||||
|
|
@ -212,6 +221,7 @@ export function dragerGasDongle(subtype: number = 0): ComponentTypeExtension {
|
|||
smoothingAverages,
|
||||
filters
|
||||
);
|
||||
console.log(chartData)
|
||||
}
|
||||
return chartData;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -176,6 +176,7 @@ export class MeasurementDescriber {
|
|||
this.details.unit = "mV";
|
||||
this.details.graph = GraphType.MULTILINE;
|
||||
this.details.unit = "mV";
|
||||
this.details.decimals = 0
|
||||
// this.details.nodeDetails = {
|
||||
// colours: ["white", "black", "red", "blue"],
|
||||
// labels: ["millivolt1", "millivolt2", "millivolt3", "millivolt4"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue