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: Locate Move Servo button mbed
Fork of 3servotest by
Diff: main.cpp
- Revision:
- 7:43692ae2d20a
- Parent:
- 6:931d51a70200
- Child:
- 8:21f40f92215f
diff -r 931d51a70200 -r 43692ae2d20a main.cpp
--- a/main.cpp Mon Sep 05 10:39:03 2016 +0000
+++ b/main.cpp Mon Sep 05 11:08:33 2016 +0000
@@ -15,23 +15,14 @@
pmove_to_dir(Y_PLUS, 600, 600);
pmove_to_dir(X_MINUS, 0, 600);
pmove_to_dir(Y_MINUS, 0, 0);
+
+ pmove_to_dir(X_PLUS, 1200, 0);
+ pmove_to_dir(Y_PLUS, 1200, 300);
+ pmove_to_dir(X_MINUS, 0, 300);
+ pmove_to_dir(Y_MINUS, 0, 0);
+ back();
}
- //turn_abs_rad(PI/2);
-
while(1) {
update();
}
}
-
-
-/*
-int main(){
- setup();
- initmotor();
-
- for(int i=0; i < 4; i++)
- {
- movelength(1200);
- turnccw();
- }
-}*/
\ No newline at end of file
