
Example project
Dependencies: PM2_Libary Eigen
Diff: StateMachine.cpp
- Revision:
- 38:8aae5cbcf25f
- Parent:
- 37:698d6b73b50c
diff -r 698d6b73b50c -r 8aae5cbcf25f StateMachine.cpp --- 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)}); } /**