Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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_fuzi by
cyclic_.h
00001 class Cyclic 00002 { 00003 public: 00004 void cyclic(int state_in) 00005 { 00006 if(state_in) 00007 { 00008 if(flag == false) 00009 { 00010 state = !state; 00011 } 00012 flag = true; 00013 } 00014 else flag = false; 00015 } 00016 00017 int getState() 00018 { 00019 return state; 00020 } 00021 00022 private: 00023 bool flag; 00024 bool state; 00025 };
Generated on Mon Aug 8 2022 20:27:09 by
