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 { type Chunk struct {
Header ChunkHeader
ChunkData []byte ChunkData []byte
Header ChunkHeader
} }
func DecodeChunk(bytes []byte) (Chunk, error) { func DecodeChunk(bytes []byte) (Chunk, error) {
+1 -1
View File
@@ -11,8 +11,8 @@ type DataPacketChunkData struct {
} }
type DataPacketChunk struct { type DataPacketChunk struct {
Chunk Chunk
Data DataPacketChunkData Data DataPacketChunkData
Chunk Chunk
} }
func DecodeDataPacketChunk(bytes []byte) (DataPacketChunk, error) { func DecodeDataPacketChunk(bytes []byte) (DataPacketChunk, error) {
+1 -1
View File
@@ -16,8 +16,8 @@ type DataTrackerChunkData struct {
} }
type DataTrackerChunk struct { type DataTrackerChunk struct {
Chunk Chunk
Data DataTrackerChunkData Data DataTrackerChunkData
Chunk Chunk
} }
func DecodeDataTrackerChunk(bytes []byte) (DataTrackerChunk, error) { func DecodeDataTrackerChunk(bytes []byte) (DataTrackerChunk, error) {
+1 -1
View File
@@ -12,8 +12,8 @@ type InfoPacketChunkData struct {
} }
type InfoPacketChunk struct { type InfoPacketChunk struct {
Chunk Chunk
Data InfoPacketChunkData Data InfoPacketChunkData
Chunk Chunk
} }
func DecodeInfoPacketChunk(bytes []byte) (InfoPacketChunk, error) { func DecodeInfoPacketChunk(bytes []byte) (InfoPacketChunk, error) {
+1 -1
View File
@@ -5,8 +5,8 @@ type InfoSystemNameChunkData struct {
} }
type InfoSystemNameChunk struct { type InfoSystemNameChunk struct {
Chunk Chunk
Data InfoSystemNameChunkData Data InfoSystemNameChunkData
Chunk Chunk
} }
func DecodeInfoSystemNameChunk(bytes []byte) (InfoSystemNameChunk, error) { func DecodeInfoSystemNameChunk(bytes []byte) (InfoSystemNameChunk, error) {
+1 -1
View File
@@ -10,8 +10,8 @@ type InfoTrackerChunkData struct {
} }
type InfoTrackerChunk struct { type InfoTrackerChunk struct {
Chunk Chunk
Data InfoTrackerChunkData Data InfoTrackerChunkData
Chunk Chunk
} }
func DecodeInfoTrackerChunk(bytes []byte) (InfoTrackerChunk, error) { func DecodeInfoTrackerChunk(bytes []byte) (InfoTrackerChunk, error) {
+1 -1
View File
@@ -5,8 +5,8 @@ type InfoTrackerNameChunkData struct {
} }
type InfoTrackerNameChunk struct { type InfoTrackerNameChunk struct {
Chunk Chunk
Data InfoTrackerNameChunkData Data InfoTrackerNameChunkData
Chunk Chunk
} }
func DecodeInfoTrackerNameChunk(bytes []byte) (InfoTrackerNameChunk, error) { func DecodeInfoTrackerNameChunk(bytes []byte) (InfoTrackerNameChunk, error) {
+2 -2
View File
@@ -12,8 +12,6 @@ type XYZData struct {
} }
type Tracker struct { type Tracker struct {
Id uint16
Name string
Pos *XYZData Pos *XYZData
Speed *XYZData Speed *XYZData
Ori *XYZData Ori *XYZData
@@ -21,6 +19,8 @@ type Tracker struct {
Accel *XYZData Accel *XYZData
TrgtPos *XYZData TrgtPos *XYZData
Timestamp *uint64 Timestamp *uint64
Name string
Id uint16
} }
func (t *Tracker) SetPos(x float32, y float32, z float32) { func (t *Tracker) SetPos(x float32, y float32, z float32) {