From 2812950ea28ce4d2e2bd5617c87d87f47892cdc5 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 29 Dec 2016 23:02:12 +0100 Subject: Add lanes --- protocol.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'protocol.go') 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 -- cgit v1.2.3