aboutsummaryrefslogtreecommitdiff
path: root/protocol.go
diff options
context:
space:
mode:
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