mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-09-10 08:39:37 +00:00
fieldalignmenttool
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user