We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b03b5d commit d47243dCopy full SHA for d47243d
src/encoders/stm32hwencoder/STM32HWEncoder.h
@@ -51,13 +51,13 @@ class STM32HWEncoder : public Sensor {
51
52
TIM_HandleTypeDef encoder_handle;
53
54
- static constexpr u_int16_t overflow_margin = 20000;
55
- u_int16_t rotations_per_overflow;
56
- u_int16_t ticks_per_overflow;
+ static constexpr uint16_t overflow_margin = 20000;
+ uint16_t rotations_per_overflow;
+ uint16_t ticks_per_overflow;
57
58
volatile int32_t overflow_count;
59
- volatile u_int16_t count; //!< current pulse counter
60
- volatile u_int16_t prev_count;
+ volatile uint16_t count; //!< current pulse counter
+ volatile uint16_t prev_count;
61
volatile int32_t prev_overflow_count;
62
63
// velocity calculation variables
0 commit comments