@z0mt3c/f1-telemetry-client
Version:
[](https://github.com/z0mt3c/f1-telemetry-client/actions/workflows/node.js.yml) [ • 820 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LapHistoryDataParser = void 0;
const F1Parser_1 = require("../F1Parser");
class LapHistoryDataParser extends F1Parser_1.F1Parser {
constructor(packetFormat) {
super();
this.endianess('little').uint32('m_lapTimeInMS').uint16('m_sector1TimeInMS');
if (packetFormat >= 2023) {
this.uint8('m_sector1TimeMinutes');
}
this.uint16('m_sector2TimeInMS');
if (packetFormat >= 2023) {
this.uint8('m_sector2TimeMinutes');
}
this.uint16('m_sector3TimeInMS');
if (packetFormat >= 2023) {
this.uint8('m_sector3TimeMinutes');
}
this.uint8('m_lapValidBitFlags');
}
}
exports.LapHistoryDataParser = LapHistoryDataParser;