@jbroll/nmea-simple
Version:
NMEA 0183 sentence parser and encoder
9 lines (8 loc) • 399 B
TypeScript
import { PacketStub } from "./PacketStub";
export declare const sentenceId: "HDM";
export declare const sentenceName = "Heading - magnetic";
export interface HDMPacket extends PacketStub<typeof sentenceId> {
heading: number;
}
export declare function decodeSentence(stub: PacketStub, fields: string[]): HDMPacket;
export declare function encodePacket(packet: HDMPacket, talker: string): string;