From 9310d1bfd0484d229b1d6b1adc92228c93260538 Mon Sep 17 00:00:00 2001 From: William Brannon Date: Mon, 25 Sep 2023 14:31:12 -0600 Subject: [PATCH] Delete `TICK_RATE` enum from `WheelSensorType` --- .../messages/configuration.py | 2 +- .../fusion_engine/messages/configuration.h | 16 +++------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/python/fusion_engine_client/messages/configuration.py b/python/fusion_engine_client/messages/configuration.py index fe287096..f870f40f 100644 --- a/python/fusion_engine_client/messages/configuration.py +++ b/python/fusion_engine_client/messages/configuration.py @@ -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, diff --git a/src/point_one/fusion_engine/messages/configuration.h b/src/point_one/fusion_engine/messages/configuration.h index d10a3454..7c075442 100644 --- a/src/point_one/fusion_engine/messages/configuration.h +++ b/src/point_one/fusion_engine/messages/configuration.h @@ -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. @@ -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"; } @@ -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; @@ -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; };