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 25, 2023
1 parent 3e6906e commit deedca5
Show file tree
Hide file tree
Showing 2 changed files with 5 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
17 changes: 4 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,8 @@ 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 +885,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 +1081,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 +1244,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 deedca5

Please sign in to comment.