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

29 lines (28 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CarMotionDataParser = void 0; const F1Parser_1 = require("../F1Parser"); class CarMotionDataParser extends F1Parser_1.F1Parser { constructor() { super(); this.floatle('m_worldPositionX') .floatle('m_worldPositionY') .floatle('m_worldPositionZ') .floatle('m_worldVelocityX') .floatle('m_worldVelocityY') .floatle('m_worldVelocityZ') .int16le('m_worldForwardDirX') .int16le('m_worldForwardDirY') .int16le('m_worldForwardDirZ') .int16le('m_worldRightDirX') .int16le('m_worldRightDirY') .int16le('m_worldRightDirZ') .floatle('m_gForceLateral') .floatle('m_gForceLongitudinal') .floatle('m_gForceVertical') .floatle('m_yaw') .floatle('m_pitch') .floatle('m_roll'); } } exports.CarMotionDataParser = CarMotionDataParser;