12/16用テスト
Dependencies: ATP3012 mbed a HMC US015_2 getGPS
Diff: Function.h
- Revision:
- 4:975b0d9bd51b
- Parent:
- 3:ec2b7587be78
- Child:
- 5:cc7917e8c442
diff -r ec2b7587be78 -r 975b0d9bd51b Function.h --- a/Function.h Wed Nov 10 08:36:55 2021 +0000 +++ b/Function.h Wed Nov 10 09:16:37 2021 +0000 @@ -19,7 +19,6 @@ double next_CP_x, next_CP_y; double CPs_x[100]; // = []; //CPリスト(x座標) double CPs_y[100]; // = []; // CPリスト(y座標) -double *pGPS_x = &GPS_x, *pGPS_y = &GPS_y; double theta; double delta; @@ -52,8 +51,8 @@ if(gps.getgps()) { //現在地取得 pc.printf("%lf %lf\r\n", gps.latitude, gps.longitude);//緯度と経度を出力 xbee.printf("%lf %lf\r\n", gps.latitude, gps.longitude);// - *pGPS_x = gps.latitude; - *pGPS_y = gps.longitude; + GPS_x = gps.latitude; + GPS_y = gps.longitude; break; } else { @@ -146,8 +145,8 @@ while(1) { if(gps.getgps()) { //現在地取得 pc.printf("%lf %lf\r\n", gps.latitude, gps.longitude);//緯度と経度を出力 - *pGPS_x = gps.latitude; - *pGPS_y = gps.longitude; + GPS_x = gps.latitude; + GPS_y = gps.longitude; break; } else {