aboutsummaryrefslogtreecommitdiff
path: root/protocol.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-12-29 23:02:12 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-12-29 23:02:12 +0100
commit2812950ea28ce4d2e2bd5617c87d87f47892cdc5 (patch)
treed1276e1e65a18b5c7a60925261cd4aa9b3c603a8 /protocol.go
parent55fe0c3c7bcd0243493976195a1e4d3283e2bfb7 (diff)
Add lanes
Diffstat (limited to 'protocol.go')
-rw-r--r--protocol.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/protocol.go b/protocol.go
index 8662cf5..ee246e0 100644
--- a/protocol.go
+++ b/protocol.go
@@ -153,6 +153,22 @@ type VehicleMsgTurn struct {
Trigger uint8
}
+const (
+ Lane1 float32 = 68.0
+ Lane2 float32 = 23.0
+ Center float32 = 0.0
+ Lane3 float32 = -23.0
+ Lane4 float32 = -68.0
+)
+
+/* Lanes
+direction
+^ -23.0 23.0
+| -68.0 0.0 68.0 offset
+| |____._____.__+__._____.____|
+ 4 3 2 1 track
+*/
+
type VehicleMsgSetOffsetFromRoadCenter struct {
Size uint8
MsgID ID