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: ATP3012 mbed a HMC US015_2 getGPS
Revision 2:83023bafb526, committed 2021-12-14
- Comitter:
 - ushiroji
 - Date:
 - Tue Dec 14 07:13:21 2021 +0000
 - Parent:
 - 1:f70beec382b6
 - Commit message:
 - test
 
Changed in this revision
| Function.h | Show annotated file Show diff for this revision Revisions of this file | 
| main.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- a/Function.h	Fri Dec 03 08:22:57 2021 +0000
+++ b/Function.h	Tue Dec 14 07:13:21 2021 +0000
@@ -123,9 +123,9 @@
 {
     xbee.printf("calibration start\r\n");
     compass.setCalibrationMode(0x43);
-    Move('4', 0.15);
+    Move('4', 0.17);
     xbee.printf("mortor mode:4 speed:0.1\n\r");
-    wait(180);
+    wait(60);
     Move('1', 0);
     xbee.printf("mortor mode:1 speed:0\n\r");
     compass.setCalibrationMode(0x45);
--- a/main.cpp	Fri Dec 03 08:22:57 2021 +0000
+++ b/main.cpp	Tue Dec 14 07:13:21 2021 +0000
@@ -5,6 +5,20 @@
 int main() {
     double angle = 0;
     
+
+  
+    Move('2', 0.5);
+    wait(20);
+    Move('2', 0.3);
+    wait(10);
+    Move('2', 0.18);
+    wait(10);
+    Move('1', 0);
+    wait(10);
+    
+    
+    
+    
     Calibration();
 
     compass.setOpMode(HMC6352_CONTINUOUS, 1, 20);
@@ -26,6 +40,7 @@
                 compass.setOpMode(HMC6352_CONTINUOUS, 1, 20);
                 angle = compass.sample() / 10;
                 xbee.printf("%f\r\n", angle);
+                speak();
             }
         }
 }
\ No newline at end of file