aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-12-04 20:35:08 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-12-04 20:35:08 +0100
commit58cf0a5b526a5afe6c8ee956aa32455dcf243586 (patch)
treeb8d3d682d191778ead55872a262a087dfb91d8c4
parent5f77ad322690c1552fb4c695f1683741961dce28 (diff)
Typos
-rw-r--r--protocol.go14
1 files 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
}
+
+////////////////////////////////////////////////////////////////////////