diff --git a/static_scheduling/bike_system.cpp b/static_scheduling/bike_system.cpp index 079fdcb..e36ac60 100644 --- a/static_scheduling/bike_system.cpp +++ b/static_scheduling/bike_system.cpp @@ -235,17 +235,12 @@ void BikeSystem::resetTask() { _taskLogger.logPeriodAndExecutionTime( _timer, advembsof::TaskLogger::kResetTaskIndex, taskStartTime); } - void BikeSystem::temperatureTask() { auto taskStartTime = _timer.elapsed_time(); - tr_warn("Tick1 %" PRIu64, _timer.elapsed_time().count()); - // no need to protect access to data members (single threaded) _currentTemperature = _sensorDevice.readTemperature(); - tr_warn("Tick2 %" PRIu64, _timer.elapsed_time().count()); - ThisThread::sleep_for(std::chrono::duration_cast( kTemperatureTaskComputationTime - (_timer.elapsed_time() - taskStartTime))); diff --git a/static_scheduling_with_event/bike_system.cpp b/static_scheduling_with_event/bike_system.cpp index ce87c29..e9416d5 100644 --- a/static_scheduling_with_event/bike_system.cpp +++ b/static_scheduling_with_event/bike_system.cpp @@ -62,7 +62,7 @@ static constexpr std::chrono::milliseconds kDisplayTask2ComputationTime = 100ms; static constexpr std::chrono::milliseconds kCPUTaskPeriod = 1600ms; static constexpr std::chrono::milliseconds kCPUTaskDelay = 1200ms; static constexpr std::chrono::milliseconds kCPUTaskComputationTime = 100ms; - + BikeSystem::BikeSystem() : _gearDevice(), _pedalDevice(), @@ -178,7 +178,7 @@ void BikeSystem::speedDistanceTask() { _taskLogger.logPeriodAndExecutionTime( _timer, advembsof::TaskLogger::kSpeedTaskIndex, taskStartTime); } - + void BikeSystem::displayTask1() { auto taskStartTime = _timer.elapsed_time();