my new gear...

Dependencies:   mbed

control_theory/nap.hpp

Committer:
yootee
Date:
22 months ago
Revision:
22:394337a4205a
Parent:
6:e7f2335456c8

File content as of revision 22:394337a4205a:

#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_;
        int now_time;
        int prev_time;
};