Dependencies: ADXL345 DHT HMC5883L SerialGPS mbed
Revision 1:082c5ed435fa, committed 2016-11-08
- Comitter:
- fadi_lad
- Date:
- Tue Nov 08 08:36:54 2016 +0000
- Parent:
- 0:f39c73c23563
- Commit message:
- V 0.5
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f39c73c23563 -r 082c5ed435fa main.cpp --- a/main.cpp Sat Nov 05 21:01:22 2016 +0000 +++ b/main.cpp Tue Nov 08 08:36:54 2016 +0000 @@ -47,8 +47,7 @@ //if (err==0){ temp=sensor.ReadTemperature(CELCIUS); Humidity=sensor.ReadHumidity(); - pc.printf("AT$SS= %x \r\n",(int)temp); - pc.printf("AT$SS= %x \r\n",(int)Humidity); + // }else // pc.printf("\r\Error DHT %i \n",err); wait(5); @@ -58,9 +57,6 @@ xBoussole = hmc5883l.getMx(); yBoussole = hmc5883l.getMy(); zBoussole = hmc5883l.getMz(); - pc.printf("AT$SS= %x \r\n",(int)xBoussole); - pc.printf("AT$SS= %x \r\n",(int)yBoussole); - pc.printf("AT$SS= %x \r\n",(int)zBoussole); wait(5); //////////////////////////////////////////////////////////////////////////////// @@ -84,9 +80,21 @@ Sat = p->satellites_used; Latitude = p->latitude; Longitude= p->longitude; - pc.printf("AT$SS= %x \r\n", (int)Latitude); - pc.printf("AT$SS= %x \r\n", (int)Longitude); - wait(20); + // pc.printf("AT$SS= %f \r\n",temp); + // pc.printf("AT$SS= %f \r\n",Humidity); + // pc.printf("AT$SS= %8x \r\n",*((int *)&xBoussole)); + // pc.printf("AT$SS= %8x \r\n",(int)yBoussole); + // pc.printf("AT$SS= %8x \r\n",(int)zBoussole); + // pc.printf("AT$SS= %x \r\n", (int)Latitude); + // pc.printf("AT$SS=00 12 FF 42 \r\n"); + // pc.printf("humidity= %4.2f C\r\n",); + // pc.printf("AT$SS= %x \r\n", (int)Longitude); + ////////////////////////////////////////////// + pc.printf("AT$SS= %x%x \r\n", (unsigned char*)&Longitude,(unsigned char*)&Latitude); + + // pc.printf("AT$SS= %x \r\n", (int)Longitude); + + wait(0); } }