blob: 95f67ec82ee072018649682fc929ac3c467d0bb0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package messages
import "github.com/pektezol/bitreader"
type SvcFixAngle struct {
Relative bool
Angle fixAngles
}
type fixAngles struct {
X float32
Y float32
Z float32
}
func ParseSvcFixAngle(reader *bitreader.Reader) SvcFixAngle {
return SvcFixAngle{
Relative: reader.TryReadBool(),
Angle: fixAngles{
X: float32(reader.TryReadBits(16)),
Y: float32(reader.TryReadBits(16)),
Z: float32(reader.TryReadBits(16)),
},
}
}
|