UNPKG

vbo-reader

Version:

A TypeScript library for parsing VBOX (.vbo) data files

57 lines (56 loc) 1.37 kB
export interface LapTimingPoint { label: string; startCoordinates: { latitude: string; longitude: string; }; endCoordinates: { latitude: string; longitude: string; }; description?: string; } export interface VBOHeader { creationDate: Date; vboxInfo: { version: string; gpsType: string; serialNumber: string; cfVersion: string; logRate: number; softwareVersion?: string; }; columnNames: string[]; channelUnits?: string[]; comments: string[]; securityCode?: string; lapTiming?: LapTimingPoint[]; } export interface VBODataRow { satellites: { count: number; hasDGPS: boolean; brakeTrigger: boolean; }; time: string; latitude: number | string; longitude: number | string; velocity: number | string; heading: number | string; height: number | string; verticalVelocity: number | string; triggerEventTime: number | string; [key: string]: any; } export interface ParsedVBOFile { header: VBOHeader; data: VBODataRow[]; } export interface ParserOptions { convertCoordinates?: boolean; rawData?: boolean; } export declare class VBOParserError extends Error { section?: string | undefined; constructor(message: string, section?: string | undefined); }