move types out of decoders package

This commit is contained in:
2025-10-17 15:27:33 -05:00
parent 7dd6d45a08
commit 7b1dc4bfd6
54 changed files with 558 additions and 490 deletions
+12
View File
@@ -0,0 +1,12 @@
package chunks
type ChunkHeader struct {
Id uint16
DataLen uint16
HasSubchunks bool
}
type Chunk struct {
ChunkData []byte
Header ChunkHeader
}
+11
View File
@@ -0,0 +1,11 @@
package chunks
type DataPacketChunkData struct {
PacketHeader *PacketHeaderChunk
TrackerList *DataTrackerListChunk
}
type DataPacketChunk struct {
Data DataPacketChunkData
Chunk Chunk
}
+16
View File
@@ -0,0 +1,16 @@
package chunks
type DataTrackerChunkData struct {
Pos *DataTrackerXYZChunk
Speed *DataTrackerXYZChunk
Ori *DataTrackerXYZChunk
Status *DataTrackerStatusChunk
Accel *DataTrackerXYZChunk
TrgtPos *DataTrackerXYZChunk
Timestamp *DataTrackerTimestampChunk
}
type DataTrackerChunk struct {
Data DataTrackerChunkData
Chunk Chunk
}
@@ -0,0 +1,9 @@
package chunks
type DataTrackerListChunkData struct {
Trackers []DataTrackerChunk
}
type DataTrackerListChunk struct {
Chunk Chunk
Data DataTrackerListChunkData
}
@@ -0,0 +1,10 @@
package chunks
type DataTrackerStatusChunkData struct {
Validity float32
}
type DataTrackerStatusChunk struct {
Chunk Chunk
Data DataTrackerStatusChunkData
}
@@ -0,0 +1,10 @@
package chunks
type DataTrackerTimestampChunkData struct {
Timestamp uint64
}
type DataTrackerTimestampChunk struct {
Chunk Chunk
Data DataTrackerTimestampChunkData
}
+12
View File
@@ -0,0 +1,12 @@
package chunks
type DataTrackerXYZChunkData struct {
X float32
Y float32
Z float32
}
type DataTrackerXYZChunk struct {
Chunk Chunk
Data DataTrackerXYZChunkData
}
+12
View File
@@ -0,0 +1,12 @@
package chunks
type InfoPacketChunkData struct {
PacketHeader *PacketHeaderChunk
SystemName *InfoSystemNameChunk
TrackerList *InfoTrackerListChunk
}
type InfoPacketChunk struct {
Data InfoPacketChunkData
Chunk Chunk
}
+10
View File
@@ -0,0 +1,10 @@
package chunks
type InfoSystemNameChunkData struct {
SystemName string
}
type InfoSystemNameChunk struct {
Data InfoSystemNameChunkData
Chunk Chunk
}
+10
View File
@@ -0,0 +1,10 @@
package chunks
type InfoTrackerChunkData struct {
TrackerName *InfoTrackerNameChunk
}
type InfoTrackerChunk struct {
Data InfoTrackerChunkData
Chunk Chunk
}
@@ -0,0 +1,10 @@
package chunks
type InfoTrackerListChunkData struct {
Trackers []InfoTrackerChunk
}
type InfoTrackerListChunk struct {
Chunk Chunk
Data InfoTrackerListChunkData
}
@@ -0,0 +1,10 @@
package chunks
type InfoTrackerNameChunkData struct {
TrackerName string
}
type InfoTrackerNameChunk struct {
Data InfoTrackerNameChunkData
Chunk Chunk
}
+14
View File
@@ -0,0 +1,14 @@
package chunks
type PacketHeaderChunkData struct {
PacketTimestamp uint64
VersionHigh uint8
VersionLow uint8
FrameId uint8
FramePacketCount uint8
}
type PacketHeaderChunk struct {
Chunk Chunk
Data PacketHeaderChunkData
}