fieldalignmenttool

This commit is contained in:
2024-12-26 14:55:33 -06:00
parent 610344e706
commit f8fde1a796
8 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -12,8 +12,8 @@ type ChunkHeader struct {
}
type Chunk struct {
Header ChunkHeader
ChunkData []byte
Header ChunkHeader
}
func DecodeChunk(bytes []byte) (Chunk, error) {
+1 -1
View File
@@ -11,8 +11,8 @@ type DataPacketChunkData struct {
}
type DataPacketChunk struct {
Chunk Chunk
Data DataPacketChunkData
Chunk Chunk
}
func DecodeDataPacketChunk(bytes []byte) (DataPacketChunk, error) {
+1 -1
View File
@@ -16,8 +16,8 @@ type DataTrackerChunkData struct {
}
type DataTrackerChunk struct {
Chunk Chunk
Data DataTrackerChunkData
Chunk Chunk
}
func DecodeDataTrackerChunk(bytes []byte) (DataTrackerChunk, error) {
+1 -1
View File
@@ -12,8 +12,8 @@ type InfoPacketChunkData struct {
}
type InfoPacketChunk struct {
Chunk Chunk
Data InfoPacketChunkData
Chunk Chunk
}
func DecodeInfoPacketChunk(bytes []byte) (InfoPacketChunk, error) {
+1 -1
View File
@@ -5,8 +5,8 @@ type InfoSystemNameChunkData struct {
}
type InfoSystemNameChunk struct {
Chunk Chunk
Data InfoSystemNameChunkData
Chunk Chunk
}
func DecodeInfoSystemNameChunk(bytes []byte) (InfoSystemNameChunk, error) {
+1 -1
View File
@@ -10,8 +10,8 @@ type InfoTrackerChunkData struct {
}
type InfoTrackerChunk struct {
Chunk Chunk
Data InfoTrackerChunkData
Chunk Chunk
}
func DecodeInfoTrackerChunk(bytes []byte) (InfoTrackerChunk, error) {
+1 -1
View File
@@ -5,8 +5,8 @@ type InfoTrackerNameChunkData struct {
}
type InfoTrackerNameChunk struct {
Chunk Chunk
Data InfoTrackerNameChunkData
Chunk Chunk
}
func DecodeInfoTrackerNameChunk(bytes []byte) (InfoTrackerNameChunk, error) {
+2 -2
View File
@@ -12,8 +12,6 @@ type XYZData struct {
}
type Tracker struct {
Id uint16
Name string
Pos *XYZData
Speed *XYZData
Ori *XYZData
@@ -21,6 +19,8 @@ type Tracker struct {
Accel *XYZData
TrgtPos *XYZData
Timestamp *uint64
Name string
Id uint16
}
func (t *Tracker) SetPos(x float32, y float32, z float32) {