Skip to content

Commit

Permalink
Add wheel ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbosch committed Dec 22, 2022
1 parent 8043f5e commit 8b5b69f
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion spec/Chassis/Wheel.vspec
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,32 @@ Speed:
datatype: float
type: sensor
unit: km/h
description: Rotational speed of a vehicle's wheel.
description: Rotational speed of a vehicle's wheel,
comment: The value refers to average speed during the interval specified by SpeedMeasurementInterval.

#
# TODO: Discuss if this will vary on wheel basis, or if it always is the same for all wheels.
#
SpeedMeasurementInterval:
datatype: float
type: sensor
unit: s
description: Interval used for calculating wheel speed.
comment: The interval may vary depending on vehicle state.

# Wheel Ticks for now considered less prioritized, unclear if actually needed for VSS use cases

WheelTicks:
datatype: int32
type: sensor
description: Counter for wheel ticks. Counter increase when wheel rotates forward and decrease when wheel rotates backward.
Counter is reset when vehicle is powered on.
comment: Wheel tick value can be negative, for example if the vehicle after being powered on starts driving backward.
Theoretically the value may wrap around but it will unlikely happen in reality as an int32 with typical
WheelTicksPerRotation (<100) and tire circumference ( about 2 cm per tick) can handle about 40000 km before wrap around.

WheelTicksPerRotation:
datatype: uint16
type: attribute
description: Number of ticks registered for one rotation of the wheel

0 comments on commit 8b5b69f

Please sign in to comment.