![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
control_theory/nap.hpp
- Committer:
- yootee
- Date:
- 2022-03-27
- Revision:
- 3:a9b4b2565a23
- Parent:
- nap.hpp@ 0:1456b6f84c75
- Child:
- 6:e7f2335456c8
File content as of revision 3:a9b4b2565a23:
#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; };