![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
Diff: control_theory/nap.hpp
- Revision:
- 3:a9b4b2565a23
- Parent:
- 0:1456b6f84c75
- Child:
- 6:e7f2335456c8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/control_theory/nap.hpp Sun Mar 27 04:51:16 2022 +0000 @@ -0,0 +1,16 @@ +#pragma once +#include <mbed.h> + +class NAP +{ + public: + NAP(float nap_time); + void take_a_nap(); + void setNaptime(float nap_time); + void restart(); + Timer nap; + private: + float nap_time_; + float now_time; + float prev_time; +}; \ No newline at end of file