Simple program for introduction of mirror actuator.

Committer:
altb2
Date:
Sat May 01 20:08:51 2021 +0000
Revision:
14:1be03d1c45c7
Parent:
13:1bf960928a93
2nd commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
altb2 5:768e10f6d372 1 #include "mbed.h"
altb2 5:768e10f6d372 2 #include "ThreadFlag.h"
altb2 5:768e10f6d372 3
altb2 5:768e10f6d372 4
altb2 5:768e10f6d372 5 // This is the loop class, it is not a controller at first hand, it guarantees a cyclic call
altb2 5:768e10f6d372 6 class ControllerLoop
altb2 5:768e10f6d372 7 {
altb2 5:768e10f6d372 8 public:
altb2 5:768e10f6d372 9 ControllerLoop(float Ts);
altb2 5:768e10f6d372 10 virtual ~ControllerLoop();
altb2 6:9ebeffe446e4 11 void start_loop(void);
altb2 6:9ebeffe446e4 12 void init_controllers(void);
altb2 6:9ebeffe446e4 13
altb2 5:768e10f6d372 14
altb2 5:768e10f6d372 15
altb2 5:768e10f6d372 16 private:
altb2 5:768e10f6d372 17 void loop(void);
altb2 5:768e10f6d372 18 Thread thread;
altb2 5:768e10f6d372 19 Ticker ticker;
altb2 5:768e10f6d372 20 ThreadFlag threadFlag;
altb2 5:768e10f6d372 21 Timer ti;
altb2 5:768e10f6d372 22 float Ts;
altb2 5:768e10f6d372 23 void sendSignal();
altb2 5:768e10f6d372 24 };