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

18 lines (17 loc) 748 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WeatherForecastSampleParser = void 0; const F1Parser_1 = require("../F1Parser"); class WeatherForecastSampleParser extends F1Parser_1.F1Parser { constructor(packetFormat) { super(); this.endianess('little').uint8('m_sessionType').uint8('m_timeOffset').uint8('m_weather').int8('m_trackTemperature'); if (packetFormat === 2020) { this.int8('m_airTemperature'); } if (packetFormat >= 2021) { this.int8('m_trackTemperatureChange').int8('m_airTemperature').int8('m_airTemperatureChange').uint8('m_rainPercentage'); } } } exports.WeatherForecastSampleParser = WeatherForecastSampleParser;