Skip to content

Commit

Permalink
Delete TICK_RATE enum from WheelSensorType
Browse files Browse the repository at this point in the history
  • Loading branch information
wbrannon committed Sep 26, 2023
1 parent 3e6906e commit 9310d1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion python/fusion_engine_client/messages/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class VehicleModel(IntEnum):

class WheelSensorType(IntEnum):
NONE = 0,
TICK_RATE = 1,
# RESERVED = 1,
TICKS = 2,
WHEEL_SPEED = 3,
VEHICLE_SPEED = 4,
Expand Down
16 changes: 3 additions & 13 deletions src/point_one/fusion_engine/messages/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -856,12 +856,7 @@ struct P1_ALIGNAS(4) VehicleDetails {
enum class WheelSensorType : uint8_t {
/** Wheel/vehicle speed data not available. */
NONE = 0,
/**
* Individual wheel rotation rates, reported as an encoder tick rate (in
* ticks/second). Will be scaled to meters/second using the specified scale
* factor.
*/
TICK_RATE = 1,
// RESERVED = 1,
/**
* Individual wheel rotational angles, reported as accumulated encoder
* ticks.
Expand Down Expand Up @@ -889,9 +884,6 @@ P1_CONSTEXPR_FUNC const char* to_string(WheelSensorType wheel_sensor_type) {
case WheelSensorType::NONE: {
return "None";
}
case WheelSensorType::TICK_RATE: {
return "Tick Rate";
}
case WheelSensorType::TICKS: {
return "Ticks";
}
Expand Down Expand Up @@ -1088,8 +1080,7 @@ struct P1_ALIGNAS(4) WheelConfig {

/**
* The scale factor to convert from wheel encoder ticks to distance (in
* meters/tick). Used for @ref WheelSensorType::TICKS and
* @ref WheelSensorType::TICK_RATE.
* meters/tick). Used for @ref WheelSensorType::TICKS.
*/
float wheel_ticks_to_m = NAN;

Expand Down Expand Up @@ -1252,8 +1243,7 @@ struct P1_ALIGNAS(4) HardwareTickConfig {

/**
* The scale factor to convert from wheel encoder ticks to distance (in
* meters/tick). Used for @ref WheelSensorType::TICKS and
* @ref WheelSensorType::TICK_RATE.
* meters/tick). Used for @ref WheelSensorType::TICKS.
*/
float wheel_ticks_to_m = NAN;
};
Expand Down

0 comments on commit 9310d1b

Please sign in to comment.