mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-08-16 12:53:36 +00:00
fieldalignmenttool
This commit is contained in:
@@ -12,8 +12,8 @@ type ChunkHeader struct {
|
||||
}
|
||||
|
||||
type Chunk struct {
|
||||
Header ChunkHeader
|
||||
ChunkData []byte
|
||||
Header ChunkHeader
|
||||
}
|
||||
|
||||
func DecodeChunk(bytes []byte) (Chunk, error) {
|
||||
|
||||
@@ -11,8 +11,8 @@ type DataPacketChunkData struct {
|
||||
}
|
||||
|
||||
type DataPacketChunk struct {
|
||||
Chunk Chunk
|
||||
Data DataPacketChunkData
|
||||
Chunk Chunk
|
||||
}
|
||||
|
||||
func DecodeDataPacketChunk(bytes []byte) (DataPacketChunk, error) {
|
||||
|
||||
@@ -16,8 +16,8 @@ type DataTrackerChunkData struct {
|
||||
}
|
||||
|
||||
type DataTrackerChunk struct {
|
||||
Chunk Chunk
|
||||
Data DataTrackerChunkData
|
||||
Chunk Chunk
|
||||
}
|
||||
|
||||
func DecodeDataTrackerChunk(bytes []byte) (DataTrackerChunk, error) {
|
||||
|
||||
@@ -12,8 +12,8 @@ type InfoPacketChunkData struct {
|
||||
}
|
||||
|
||||
type InfoPacketChunk struct {
|
||||
Chunk Chunk
|
||||
Data InfoPacketChunkData
|
||||
Chunk Chunk
|
||||
}
|
||||
|
||||
func DecodeInfoPacketChunk(bytes []byte) (InfoPacketChunk, error) {
|
||||
|
||||
@@ -5,8 +5,8 @@ type InfoSystemNameChunkData struct {
|
||||
}
|
||||
|
||||
type InfoSystemNameChunk struct {
|
||||
Chunk Chunk
|
||||
Data InfoSystemNameChunkData
|
||||
Chunk Chunk
|
||||
}
|
||||
|
||||
func DecodeInfoSystemNameChunk(bytes []byte) (InfoSystemNameChunk, error) {
|
||||
|
||||
@@ -10,8 +10,8 @@ type InfoTrackerChunkData struct {
|
||||
}
|
||||
|
||||
type InfoTrackerChunk struct {
|
||||
Chunk Chunk
|
||||
Data InfoTrackerChunkData
|
||||
Chunk Chunk
|
||||
}
|
||||
|
||||
func DecodeInfoTrackerChunk(bytes []byte) (InfoTrackerChunk, error) {
|
||||
|
||||
@@ -5,8 +5,8 @@ type InfoTrackerNameChunkData struct {
|
||||
}
|
||||
|
||||
type InfoTrackerNameChunk struct {
|
||||
Chunk Chunk
|
||||
Data InfoTrackerNameChunkData
|
||||
Chunk Chunk
|
||||
}
|
||||
|
||||
func DecodeInfoTrackerNameChunk(bytes []byte) (InfoTrackerNameChunk, error) {
|
||||
|
||||
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user