![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Cuboid.
main.cpp@25:a9a8e60ff1c2, 19 months ago (annotated)
- Committer:
- pmic
- Date:
- Thu Nov 17 22:58:05 2022 +0000
- Revision:
- 25:a9a8e60ff1c2
- Parent:
- 17:0a980eacc81b
Updated Cntrl_Libary version and changed .hgignore
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pmic | 1:93d997d6b232 | 1 | #include "mbed.h" |
pmic | 1:93d997d6b232 | 2 | #include "platform/mbed_thread.h" |
pmic | 6:e1fa1a2d7483 | 3 | |
pmic | 17:0a980eacc81b | 4 | #include "Controller.h" |
pmic | 6:e1fa1a2d7483 | 5 | |
pmic | 8:9bb806a7f585 | 6 | DigitalOut led(LED1); |
pmic | 6:e1fa1a2d7483 | 7 | |
pmic | 17:0a980eacc81b | 8 | float Ts = 0.002f; |
pmic | 17:0a980eacc81b | 9 | Controller controller(Ts); |
pmic | 11:af0f165f8761 | 10 | |
pmic | 1:93d997d6b232 | 11 | int main() |
pmic | 9:f10b974d01e0 | 12 | { |
pmic | 17:0a980eacc81b | 13 | controller.start_loop(); |
pmic | 6:e1fa1a2d7483 | 14 | |
pmic | 17:0a980eacc81b | 15 | while(true) { |
pmic | 17:0a980eacc81b | 16 | /* visual feedback that the main task is executed */ |
pmic | 17:0a980eacc81b | 17 | led = !led; |
pmic | 17:0a980eacc81b | 18 | thread_sleep_for(1000); |
pmic | 8:9bb806a7f585 | 19 | } |
pmic | 6:e1fa1a2d7483 | 20 | } |