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.
Diff: ZENGO.h
- Revision:
- 9:215d94939bc9
diff -r 3eb58ae94a93 -r 215d94939bc9 ZENGO.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ZENGO.h Thu Jan 30 05:24:48 2014 +0000
@@ -0,0 +1,29 @@
+ void ZENGO1(void const *argument) {
+ Asi1.period(0.0001);
+ while(true){
+ if(go1==1){
+ Asi1.pulsewidth(0.00009f);
+ }
+ else if(zen1==1){
+ Asi1.pulsewidth(0.00001f);
+ }
+ else{
+ Asi1.pulsewidth(0.00005f);
+ }
+ }
+}
+
+ void ZENGO2(void const *argument) {
+ Asi2.period(0.0001);
+ while(true){
+ if(zen2==1){
+ Asi2.pulsewidth(0.00009f);
+ }
+ else if(go2==1){
+ Asi2.pulsewidth(0.00001f);
+ }
+ else{
+ Asi2.pulsewidth(0.00005f);
+ }
+ }
+}