Ruprecht Altenburger
/
simple_program
Simple program for introduction of mirror actuator.
ControllerLoop.h
- Committer:
- altb2
- Date:
- 2021-05-01
- Revision:
- 14:1be03d1c45c7
- Parent:
- 13:1bf960928a93
File content as of revision 14:1be03d1c45c7:
#include "mbed.h" #include "ThreadFlag.h" // This is the loop class, it is not a controller at first hand, it guarantees a cyclic call class ControllerLoop { public: ControllerLoop(float Ts); virtual ~ControllerLoop(); void start_loop(void); void init_controllers(void); private: void loop(void); Thread thread; Ticker ticker; ThreadFlag threadFlag; Timer ti; float Ts; void sendSignal(); };