diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-11-06 18:37:11 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-11-06 18:37:11 +0300 |
| commit | 2f8c92f261586f68a976efce0cfcdd0401f402e0 (patch) | |
| tree | 33189cc48987789dff4e7fba0a74d2b2326f0a04 /pkg/messages/types/svcFixAngle.go | |
| parent | convert cm ticks correctly (diff) | |
| download | sdp.go-2f8c92f261586f68a976efce0cfcdd0401f402e0.tar.gz sdp.go-2f8c92f261586f68a976efce0cfcdd0401f402e0.tar.bz2 sdp.go-2f8c92f261586f68a976efce0cfcdd0401f402e0.zip | |
dont try to understand it, feel itlp-parser
Diffstat (limited to 'pkg/messages/types/svcFixAngle.go')
| -rw-r--r-- | pkg/messages/types/svcFixAngle.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/pkg/messages/types/svcFixAngle.go b/pkg/messages/types/svcFixAngle.go deleted file mode 100644 index f00c239..0000000 --- a/pkg/messages/types/svcFixAngle.go +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | package messages | ||
| 2 | |||
| 3 | import ( | ||
| 4 | "github.com/pektezol/bitreader" | ||
| 5 | ) | ||
| 6 | |||
| 7 | type SvcFixAngle struct { | ||
| 8 | Relative bool | ||
| 9 | Angle fixAngles | ||
| 10 | } | ||
| 11 | |||
| 12 | type fixAngles struct { | ||
| 13 | X float32 | ||
| 14 | Y float32 | ||
| 15 | Z float32 | ||
| 16 | } | ||
| 17 | |||
| 18 | func ParseSvcFixAngle(reader *bitreader.Reader) SvcFixAngle { | ||
| 19 | svcFixAngle := SvcFixAngle{ | ||
| 20 | Relative: reader.TryReadBool(), | ||
| 21 | Angle: fixAngles{ | ||
| 22 | X: float32(reader.TryReadBits(16)), | ||
| 23 | Y: float32(reader.TryReadBits(16)), | ||
| 24 | Z: float32(reader.TryReadBits(16)), | ||
| 25 | }, | ||
| 26 | } | ||
| 27 | |||
| 28 | return svcFixAngle | ||
| 29 | } | ||