Skip to content

Commit

Permalink
#172 - date convert to int change
Browse files Browse the repository at this point in the history
  • Loading branch information
bracyw committed Sep 20, 2024
1 parent 36cef52 commit 27d9cd1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class AccelerationGraphs implements OnInit {
this.storage.get(IdentifierDataType.XYZAccel).subscribe((value) => {
const x1 = decimalPipe(value.values[0]);
const y1 = decimalPipe(value.values[1]);
const time = decimalPipe(value.time);
const time = +value.time;
this.xData.push({
x: time,
y: x1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class CellTempDisplay {
ngOnInit() {
this.storage.get(IdentifierDataType.CELL_TEMP_HIGH).subscribe((value) => {
this.maxTemp = floatPipe(value.values[0]);
this.cellTempData.push({ x: decimalPipe(value.time), y: this.maxTemp });
this.cellTempData.push({ x: +value.time, y: this.maxTemp });
});
this.storage.get(IdentifierDataType.CELL_TEMP_AVG).subscribe((value) => {
this.avgTemp = floatPipe(value.values[0]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ export default class HighLowCellDisplay {
this.storage.get(IdentifierDataType.VOLTS_LOW).subscribe((value) => {
this.lowCellVoltage = decimalPipe(value.values[0], 3);
this.delta = decimalPipe((this.highCellVoltage - this.lowCellVoltage).toFixed(3), 3);
this.lowVoltsData.push({ x: decimalPipe(value.time), y: this.lowCellVoltage });
this.lowVoltsData.push({ x: +value.time, y: this.lowCellVoltage });
});
this.storage.get(IdentifierDataType.VOLTS_HIGH).subscribe((value) => {
this.highCellVoltage = decimalPipe(value.values[0], 3);
this.delta = decimalPipe((this.highCellVoltage - this.lowCellVoltage).toFixed(3), 3);
this.highVoltsData.push({ x: decimalPipe(value.time), y: this.highCellVoltage });
this.highVoltsData.push({ x: +value.time, y: this.highCellVoltage });
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class PackVoltageDisplay {
ngOnInit() {
this.storage.get(IdentifierDataType.PACK_VOLTAGE).subscribe((value) => {
this.voltage = floatPipe(value.values[0]);
this.packVoltData.push({ x: decimalPipe(value.time), y: this.voltage });
this.packVoltData.push({ x: +value.time, y: this.voltage });
});
}
}

0 comments on commit 27d9cd1

Please sign in to comment.