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: MODSERIAL mbed-rtos mbed
Fork of Master by
Diff: control.cpp
- Revision:
- 9:6057314dc8ec
- Parent:
- 8:bfcfda6b38fe
diff -r bfcfda6b38fe -r 6057314dc8ec control.cpp
--- a/control.cpp Sat Sep 13 09:42:55 2014 +0000
+++ b/control.cpp Sat Sep 13 11:03:52 2014 +0000
@@ -34,14 +34,14 @@
}
void pull(float buf){
- Sig1 = 0;
- Sig2 = 1;
+ Sig1 = 1;
+ Sig2 = 0;
Pwm = zeroPWM+buf/3;
}
void loose(float buf){
- Sig1 = 1;
- Sig2 = 0;
+ Sig1 = 0;
+ Sig2 = 1;
Pwm = zeroPWM+buf/3;
}
@@ -78,5 +78,4 @@
void getSensor(float* _ir,float* _fsr){
*_ir = IR;
*_fsr = FSR;
- c_pc.printf("%f\n",*_fsr);
}
\ No newline at end of file
