Implemented Query, Telemetry, Weather and RawGPS parsing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { PacketSegment, PacketStructure } from "./parser.types";
|
||||
import { Dissected, Segment } from "@hamradio/packet";
|
||||
|
||||
export interface IAddress {
|
||||
call: string;
|
||||
@@ -107,7 +107,7 @@ export interface PositionPayload {
|
||||
messageType?: string;
|
||||
isStandard?: boolean;
|
||||
};
|
||||
sections?: PacketSegment[];
|
||||
sections?: Segment[];
|
||||
}
|
||||
|
||||
// Compressed Position Format
|
||||
@@ -250,12 +250,14 @@ export interface WeatherPayload {
|
||||
rawRain?: number; // Raw rain counter
|
||||
software?: string; // Weather software type
|
||||
weatherUnit?: string; // Weather station type
|
||||
comment?: string; // Additional comment
|
||||
}
|
||||
|
||||
// Raw GPS Payload (NMEA sentences)
|
||||
export interface RawGPSPayload {
|
||||
type: "raw-gps";
|
||||
sentence: string; // Raw NMEA sentence
|
||||
position?: IPosition; // Optional parsed position if available
|
||||
}
|
||||
|
||||
// Station Capabilities Payload
|
||||
@@ -323,5 +325,5 @@ export type Payload = BasePayload &
|
||||
// Extended Frame with decoded payload
|
||||
export interface DecodedFrame extends IFrame {
|
||||
decoded?: Payload;
|
||||
structure?: PacketStructure; // Routing and other frame-level sections
|
||||
structure?: Dissected; // Routing and other frame-level sections
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user