Merge branch 'develop' into FIX/init-dec_order
Some checks failed
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-bike-system) (push) Failing after 2s
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-sensor-device) (push) Failing after 3s
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-speedometer) (push) Failing after 3s
Some checks failed
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-bike-system) (push) Failing after 2s
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-sensor-device) (push) Failing after 3s
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-speedometer) (push) Failing after 3s
This commit is contained in:
commit
5a85e1da8d
@ -235,17 +235,12 @@ void BikeSystem::resetTask() {
|
|||||||
_taskLogger.logPeriodAndExecutionTime(
|
_taskLogger.logPeriodAndExecutionTime(
|
||||||
_timer, advembsof::TaskLogger::kResetTaskIndex, taskStartTime);
|
_timer, advembsof::TaskLogger::kResetTaskIndex, taskStartTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BikeSystem::temperatureTask() {
|
void BikeSystem::temperatureTask() {
|
||||||
auto taskStartTime = _timer.elapsed_time();
|
auto taskStartTime = _timer.elapsed_time();
|
||||||
|
|
||||||
tr_warn("Tick1 %" PRIu64, _timer.elapsed_time().count());
|
|
||||||
|
|
||||||
// no need to protect access to data members (single threaded)
|
// no need to protect access to data members (single threaded)
|
||||||
_currentTemperature = _sensorDevice.readTemperature();
|
_currentTemperature = _sensorDevice.readTemperature();
|
||||||
|
|
||||||
tr_warn("Tick2 %" PRIu64, _timer.elapsed_time().count());
|
|
||||||
|
|
||||||
ThisThread::sleep_for(std::chrono::duration_cast<std::chrono::milliseconds>(
|
ThisThread::sleep_for(std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||||
kTemperatureTaskComputationTime - (_timer.elapsed_time() - taskStartTime)));
|
kTemperatureTaskComputationTime - (_timer.elapsed_time() - taskStartTime)));
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ static constexpr std::chrono::milliseconds kDisplayTask2ComputationTime = 100ms;
|
|||||||
static constexpr std::chrono::milliseconds kCPUTaskPeriod = 1600ms;
|
static constexpr std::chrono::milliseconds kCPUTaskPeriod = 1600ms;
|
||||||
static constexpr std::chrono::milliseconds kCPUTaskDelay = 1200ms;
|
static constexpr std::chrono::milliseconds kCPUTaskDelay = 1200ms;
|
||||||
static constexpr std::chrono::milliseconds kCPUTaskComputationTime = 100ms;
|
static constexpr std::chrono::milliseconds kCPUTaskComputationTime = 100ms;
|
||||||
|
|
||||||
BikeSystem::BikeSystem()
|
BikeSystem::BikeSystem()
|
||||||
: _gearDevice(),
|
: _gearDevice(),
|
||||||
_pedalDevice(),
|
_pedalDevice(),
|
||||||
@ -178,7 +178,7 @@ void BikeSystem::speedDistanceTask() {
|
|||||||
_taskLogger.logPeriodAndExecutionTime(
|
_taskLogger.logPeriodAndExecutionTime(
|
||||||
_timer, advembsof::TaskLogger::kSpeedTaskIndex, taskStartTime);
|
_timer, advembsof::TaskLogger::kSpeedTaskIndex, taskStartTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BikeSystem::displayTask1() {
|
void BikeSystem::displayTask1() {
|
||||||
auto taskStartTime = _timer.elapsed_time();
|
auto taskStartTime = _timer.elapsed_time();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user