ライブラリ化を行った後
Dependencies: QEI accelerator bit_test cyclic_io cyclic_var cylinder event_var limit mbed mecanum motor_drive pid pid_encoder rs422_put sbdbt servo
Fork of 17robo_Practice1 by
headerfile_unuse/cyclic_.h
- Committer:
- echo_piyo
- Date:
- 2017-09-28
- Revision:
- 77:17469192b53a
- Parent:
- 66:1664ee92539d
File content as of revision 77:17469192b53a:
class Cyclic { public: void cyclic(int state_in) { if(state_in) { if(flag == false) { state = !state; } flag = true; } else flag = false; } int getState() { return state; } private: bool flag; bool state; };