ADD [WIP] Static scheduling with event
This commit is contained in:
@ -51,4 +51,10 @@ static constexpr std::chrono::milliseconds kMaxPedalRotationTime = 1500ms;
|
||||
// definition of pedal rotation time change upon acceleration/deceleration
|
||||
static constexpr std::chrono::milliseconds kDeltaPedalRotationTime = 25ms;
|
||||
|
||||
static constexpr uint32_t kNbrOfSteps = static_cast<uint32_t>(
|
||||
(
|
||||
bike_computer::kMaxPedalRotationTime - bike_computer::kMinPedalRotationTime
|
||||
).count() / bike_computer::kDeltaPedalRotationTime.count()
|
||||
);
|
||||
|
||||
} // namespace bike_computer
|
Reference in New Issue
Block a user