mecha
Dependents: 2019NHK_A_manual_red 2019NHK_A_manual_red 2019NHK_A_manual_blue
towelest.h
- Committer:
- ec30109b
- Date:
- 2019-10-03
- Revision:
- 6:9f932b9adee5
- Parent:
- 4:416d194973a3
File content as of revision 6:9f932b9adee5:
#ifndef TOWELEST_H #define TOWELEST_H #include "mbed.h" #include "ikarashiMDC.h" #include "PID.h" #include "pinconfig_main.h" const int RS485_BAUD = 115200; class towelest { public: towelest(Serial* RS485,int address,PinName Limit0); void open(); //展開 void close(); //!展開 void setPoint(int target); //pid目標値 void setPulse(int Loli); //毎ループで呼び出し void pid_compute(); //毎ループで呼び出し void allstop(); private: ikarashiMDC **Motor; PID pid; DigitalIn LimitSW0; Timer timer; float compute; float time; int Loli,loli,addres,target; }; #endif