2024-10-20 14:38:42 +02:00
Yann Sierro - Rémi Heredero
AdvEmbSoft/HESSO-Master/2024
# BikeComputer
This is a project done in the course of AdvEmbSoft during the master's degree. It contains a program for spinning bikes.
2024-10-22 15:44:41 +02:00
# Configuration
## Libraries
Add disco libraries :
2024-10-20 14:38:42 +02:00
2024-10-22 15:48:08 +02:00
```terminal
2024-10-22 15:44:41 +02:00
mbed add https://github.com/SergeAyer/DISCO_H747I.git
2024-10-22 15:48:08 +02:00
```
2024-10-22 15:44:41 +02:00
Add sensor libraries :
2024-10-22 15:48:08 +02:00
```terminal
2024-10-22 15:44:41 +02:00
mbed add https://github.com/SergeAyer/advdembsof_library.git
2024-10-22 15:48:08 +02:00
```
2024-10-22 15:44:41 +02:00
Test sensor libraries :
2024-10-22 15:48:08 +02:00
```terminal
2024-10-22 15:44:41 +02:00
mbed test -m DISCO_H747I -t GCC_ARM -n advdembsof_library-tests-sensors-hdc1000 --compile --run
2024-10-22 15:48:08 +02:00
```
2024-11-17 18:25:48 +01:00
# Some questions
## If you print CPU statistics at the end of every major cycle (in the super-loop), what CPU usage do you observe? How can you explain the observed CPU uptime?
2024-11-17 18:26:18 +01:00
We observe a 100% usage because on each CPU cycle it compare if time is done.
## If you run the program after the change from busy wait to sleep calls, what CPU usage do you observe? How can you explain the observed CPU uptime?
We can observe only a usage of 75% because the CPU is more on Idle with Thread sleep.