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:
- 2:c610e1a7fbcd
- Parent:
- 1:e1cfb5850088
- Child:
- 3:12e1f116ea42
--- a/control.cpp Thu Sep 11 14:42:49 2014 +0000
+++ b/control.cpp Thu Sep 11 15:09:05 2014 +0000
@@ -10,6 +10,10 @@
DigitalOut Sig2(p23);
PwmOut Pwm(p22);
+void motorSetup(void){
+ resetPos();
+}
+
void pull(float buf){
Sig1 = 0;
Sig2 = 1;
@@ -34,7 +38,7 @@
Pwm = 0;
}
-void ResetPos(void){
+void resetPos(void){
int pos_flag=0;
while(1){
