
Example project
Dependencies: PM2_Libary Eigen
Revision 44:dd746bf0e81f, committed 2022-05-14
- Comitter:
- pmic
- Date:
- Sat May 14 16:07:06 2022 +0200
- Parent:
- 43:0a124a21e227
- Child:
- 45:d9e6e89210f9
- Commit message:
- Formatting
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat May 14 13:46:55 2022 +0000 +++ b/main.cpp Sat May 14 16:07:06 2022 +0200 @@ -24,8 +24,8 @@ void user_button_pressed_fcn(); // custom functions which gets executed when user button gets pressed and released, definition below void user_button_released_fcn(); -int main() { - +int main() +{ // while loop gets executed every main_task_period_ms milliseconds const int main_task_period_ms = 10; // define main task period time in ms e.g. 50 ms -> main task runns 20 times per second Timer main_task_timer; // create Timer object which we use to run the main task every main task period time in ms