diff --git a/multi_tasking/bike_system.cpp b/multi_tasking/bike_system.cpp index 98d84ee..112455d 100644 --- a/multi_tasking/bike_system.cpp +++ b/multi_tasking/bike_system.cpp @@ -39,27 +39,16 @@ namespace multi_tasking { -static constexpr std::chrono::milliseconds kGearTaskPeriod = 800ms; -static constexpr std::chrono::milliseconds kGearTaskDelay = 0ms; -static constexpr std::chrono::milliseconds kGearTaskComputationTime = 100ms; -static constexpr std::chrono::milliseconds kSpeedDistanceTaskPeriod = 400ms; -static constexpr std::chrono::milliseconds kSpeedDistanceTaskDelay = 0ms; // 0 or 100ms +static constexpr std::chrono::milliseconds kGearTaskComputationTime = 100ms; static constexpr std::chrono::milliseconds kSpeedDistanceTaskComputationTime = 200ms; static constexpr std::chrono::milliseconds kDisplayTask1Period = 1600ms; static constexpr std::chrono::milliseconds kDisplayTask1Delay = 300ms; static constexpr std::chrono::milliseconds kDisplayTask1ComputationTime = 200ms; -static constexpr std::chrono::milliseconds kResetTaskPeriod = 800ms; -static constexpr std::chrono::milliseconds kResetTaskDelay = 700ms; -static constexpr std::chrono::milliseconds kResetTaskComputationTime = 100ms; static constexpr std::chrono::milliseconds kTemperatureTaskPeriod = 1600ms; static constexpr std::chrono::milliseconds kTemperatureTaskDelay = 1100ms; static constexpr std::chrono::milliseconds kTemperatureTaskComputationTime = 100ms; -static constexpr std::chrono::milliseconds kDisplayTask2Period = 1600ms; -static constexpr std::chrono::milliseconds kDisplayTask2Delay = 1200ms; -static constexpr std::chrono::milliseconds kDisplayTask2ComputationTime = 100ms; static constexpr std::chrono::milliseconds kCPUTaskPeriod = 1600ms; static constexpr std::chrono::milliseconds kCPUTaskDelay = 0ms; -static constexpr std::chrono::milliseconds kCPUTaskComputationTime = 0ms; BikeSystem::BikeSystem() : _timer(),