ライブラリ化を行った後
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
Diff: headerfile_unuse/cyclic_.h
- Revision:
- 66:1664ee92539d
- Parent:
- 32:f535ace7c529
diff -r 5e4c2e5494ae -r 1664ee92539d headerfile_unuse/cyclic_.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/headerfile_unuse/cyclic_.h Sun Sep 24 05:25:03 2017 +0000 @@ -0,0 +1,25 @@ +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; +}; \ No newline at end of file