UNPKG

@z0mt3c/f1-telemetry-client

Version:

[![Node.js CI](https://github.com/z0mt3c/f1-telemetry-client/actions/workflows/node.js.yml/badge.svg)](https://github.com/z0mt3c/f1-telemetry-client/actions/workflows/node.js.yml) [![NPM Release](https://img.shields.io/npm/v/@z0mt3c/f1-telemetry-client.sv

24 lines (23 loc) 820 B
"use strict"; 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;