From 58cf0a5b526a5afe6c8ee956aa32455dcf243586 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 4 Dec 2016 20:35:08 +0100 Subject: Typos --- protocol.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/protocol.go b/protocol.go index 813be12..d1792b9 100644 --- a/protocol.go +++ b/protocol.go @@ -34,7 +34,7 @@ const ( // Vehicle position updates VehicleMsgV2CLocalizationPositionUpdate = 0x27 - VehcileMsgV2CLocalizationTransitionUpdate = 0x29 + VehicleMsgV2CLocalizationTransitionUpdate = 0x29 VehicleMsgV2CLocalizationIntersectionUpdate = 0x2a VehicleMsgV2cVehicleDelocalized = 0x2b VehicleMsgC2VSetOffsetFromRoadCenter = 0x2c @@ -59,7 +59,7 @@ const ( ) const ( - VehcileTurnTriggerImmediate = iota // Run immediately + VehicleTurnTriggerImmediate = iota // Run immediately VehicleTurnTriggerIntersection // Run at the next intersection ) @@ -85,7 +85,7 @@ const ( ) const ( - VehcileMaxLightIntensity = 14 + VehicleMaxLightIntensity = 14 VehicleMaxLightTime = 11 ) @@ -122,7 +122,7 @@ const ( type VehicleMsg struct { Size uint8 MsgID uint8 - Payload [VehicleMsgMaxSize]uint8 + Payload [VehicleMsgMaxSize]byte } type VehicleMsgVersionResponse struct { @@ -137,7 +137,7 @@ type VehicleBatteryLevelResponse struct { BatteryLevel uint16 } -type VehcileMsgSDKMode struct { +type VehicleMsgSDKMode struct { Size uint8 MsgID uint8 On uint8 @@ -165,7 +165,7 @@ type VehicleMsgSetOffsetFromRoadCenter struct { Offset float32 // mm } -type VehcileMsgChangeLane struct { +type VehicleMsgChangeLane struct { Size uint8 MsgID uint8 HorizontalSpeed uint16 // mm/sec @@ -260,3 +260,5 @@ type VehicleMsgSetConfigParams struct { SuperCodeParseMask uint8 TrackMaterial uint8 } + +//////////////////////////////////////////////////////////////////////// -- cgit v1.2.3