引数の誤りを変更

Dependencies:   mbed HMC5883L_2

Files at this revision

API Documentation at this revision

Comitter:
taknokolat
Date:
Thu Feb 07 06:14:43 2019 +0000
Parent:
0:26409a44f1f3
Commit message:
a; ;

Changed in this revision

HMC5883L.lib 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
diff -r 26409a44f1f3 -r c91577293e84 HMC5883L.lib
--- a/HMC5883L.lib	Wed Feb 06 11:54:51 2019 +0000
+++ b/HMC5883L.lib	Thu Feb 07 06:14:43 2019 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/1519026547/code/HMC5883L/#ea1b30a71280
+https://os.mbed.com/teams/1519026547/code/HMC5883L_2/#5c0cebb61b0f
diff -r 26409a44f1f3 -r c91577293e84 main.cpp
--- a/main.cpp	Wed Feb 06 11:54:51 2019 +0000
+++ b/main.cpp	Thu Feb 07 06:14:43 2019 +0000
@@ -9,16 +9,18 @@
   
    while(1){
        compass.init();
-       b= compass.getHeadingXYDeg(0,-150);
+       b= compass.getHeadingXYDeg(20,50);
        printf("%lf\r\n",b);
-       wait(1);
+       
+      // wait(0.);
        }
        
    /*while(1){
    compass.getXYZ(a);
-   printf("%d, %d, %d,\r\n",a[0],a[2]-150,a[1]);
-   wait(1);}
-*/
+   //printf("%d, %d, %d,\r\n",a[0],a[2]-150,a[1]);
+   printf("%d, %d\r\n",a[0]+20,a[2]+50);
+   //wait(1);}
+
   
-    }
-
+    }*/
+}