
Example project
Dependencies: PM2_Libary Eigen
Revision 38:8aae5cbcf25f, committed 2022-05-10
- Comitter:
- pmic
- Date:
- Tue May 10 11:18:33 2022 +0200
- Parent:
- 37:698d6b73b50c
- Child:
- 39:f336caef17d9
- Commit message:
- Adjusted ticker.attach
Changed in this revision
Controller.cpp | Show annotated file Show diff for this revision Revisions of this file |
StateMachine.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Controller.cpp Tue May 10 10:04:51 2022 +0200 +++ b/Controller.cpp Tue May 10 11:18:33 2022 +0200 @@ -73,7 +73,7 @@ // start thread and timer interrupt thread.start(callback(this, &Controller::run)); - ticker.attach(callback(this, &Controller::sendThreadFlag), PERIOD); + ticker.attach(callback(this, &Controller::sendThreadFlag), std::chrono::microseconds{static_cast<long int>(1.0e6f * PERIOD)}); } /**
--- a/StateMachine.cpp Tue May 10 10:04:51 2022 +0200 +++ b/StateMachine.cpp Tue May 10 11:18:33 2022 +0200 @@ -28,7 +28,7 @@ // start thread and timer interrupt thread.start(callback(this, &StateMachine::run)); - ticker.attach(callback(this, &StateMachine::sendThreadFlag), PERIOD); + ticker.attach(callback(this, &StateMachine::sendThreadFlag), std::chrono::microseconds{static_cast<long int>(1.0e6f * PERIOD)}); } /**