aboutsummaryrefslogtreecommitdiff
path: root/protocol.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-12-30 13:25:16 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-12-30 13:25:16 +0100
commit6b52adb71fcba7af885edec2e8ac18fcddecf285 (patch)
tree0bb3556077030a8867826694718fef8aa412441b /protocol.go
parent03fae13a609c0d9f653406a134032fc1f0c9db46 (diff)
Uniform
Diffstat (limited to 'protocol.go')
-rw-r--r--protocol.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocol.go b/protocol.go
index 6f2ee38..4efa15a 100644
--- a/protocol.go
+++ b/protocol.go
@@ -169,10 +169,10 @@ see also: https://github.com/IBM-Bluemix/node-mqtt-for-anki-overdrive
type VehicleMsgSetOffsetFromRoadCenter struct {
Size uint8
MsgID ID
- Offset Offset // mm
+ Offset OffsetMM // mm
}
-func (v *VehicleMsgSetOffsetFromRoadCenter) Set(offset Offset) {
+func (v *VehicleMsgSetOffsetFromRoadCenter) Set(offset OffsetMM) {
v.Size = uint8(binary.Size(v) - 1)
v.MsgID = VehicleMsgC2VSetOffsetFromRoadCenter
v.Offset = offset
@@ -183,12 +183,12 @@ type VehicleMsgChangeLane struct {
MsgID ID
HorizontalSpeed MMperSec // mm/sec
HorizontalAccel MMperSecSQ // mm/secĀ²
- Offset Offset // from road center mm
+ Offset OffsetMM // from road center mm
HopIntent uint8
Tag uint8
}
-func (v *VehicleMsgChangeLane) Set(hspeed MMperSec, haccel MMperSecSQ, offset Offset) {
+func (v *VehicleMsgChangeLane) Set(hspeed MMperSec, haccel MMperSecSQ, offset OffsetMM) {
v.Size = uint8(binary.Size(v) - 1)
v.MsgID = VehicleMsgC2VChangeLane
v.HorizontalSpeed = hspeed
@@ -208,7 +208,7 @@ type VehicleLocalizationPositionUpdate struct {
MsgID ID
LocalizationID uint8
RoadPieceID uint8
- Offset Offset // from road center mm
+ Offset OffsetMM // from road center mm
Speed MMperSec // mm/sec
ParsingFlags Flags