dsf
Dependencies: BLE_API mbed nRF51822
Controller.hpp@0:b5906c81772b, 2017-02-05 (annotated)
- Committer:
- stoicancristi
- Date:
- Sun Feb 05 16:31:58 2017 +0000
- Revision:
- 0:b5906c81772b
BLE
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
stoicancristi | 0:b5906c81772b | 1 | #ifndef CONTROLLER_H |
stoicancristi | 0:b5906c81772b | 2 | #define CONTROLLER_H |
stoicancristi | 0:b5906c81772b | 3 | |
stoicancristi | 0:b5906c81772b | 4 | #include "ControllerParams.hpp" |
stoicancristi | 0:b5906c81772b | 5 | |
stoicancristi | 0:b5906c81772b | 6 | using namespace std; |
stoicancristi | 0:b5906c81772b | 7 | |
stoicancristi | 0:b5906c81772b | 8 | class Controller { |
stoicancristi | 0:b5906c81772b | 9 | protected: |
stoicancristi | 0:b5906c81772b | 10 | float ref; |
stoicancristi | 0:b5906c81772b | 11 | float out; |
stoicancristi | 0:b5906c81772b | 12 | |
stoicancristi | 0:b5906c81772b | 13 | public: |
stoicancristi | 0:b5906c81772b | 14 | virtual float calculateCmd(void) const = 0; |
stoicancristi | 0:b5906c81772b | 15 | virtual void updateParams(ControllerParams&) = 0; |
stoicancristi | 0:b5906c81772b | 16 | virtual ~Controller(); |
stoicancristi | 0:b5906c81772b | 17 | |
stoicancristi | 0:b5906c81772b | 18 | void updateRef(float); |
stoicancristi | 0:b5906c81772b | 19 | void updateOut(float); |
stoicancristi | 0:b5906c81772b | 20 | }; |
stoicancristi | 0:b5906c81772b | 21 | |
stoicancristi | 0:b5906c81772b | 22 | #endif |