![](/media/cache/profiles/6f7790bb54a7c5d3dea27385488a604a.jpg.50x50_q85.jpg)
putting strings to xbee
Dependencies: BMP085 SDFileSystem mbed JPEGCamera
Fork of SaibiCansat2014 by
Diff: main.cpp
- Revision:
- 5:8a4b2ffa8d71
- Parent:
- 4:05e46365f442
- Child:
- 6:9824d4e2f29b
--- a/main.cpp Tue Jul 15 08:22:19 2014 +0000 +++ b/main.cpp Tue Jul 15 10:43:04 2014 +0000 @@ -2,7 +2,7 @@ #include "SDFileSystem.h" #include "BMP085.h" #include "ADXL345_I2C.h" - +#include "camera.h" SDFileSystem sd(p5, p6, p7, p8, "sd"); @@ -75,8 +75,12 @@ } myled = 0; + int loop_count = 0; + while (1) { - wait(1.5); + loop_count += 1; + + //wait(1.5); //BOSH BMP085 Barometric pressure,temperature measurement accelerometer.getOutput(readings); @@ -108,5 +112,7 @@ //LM35DZ Temperature measurement P20 analog-in6 pc.printf("Temperature :: %f\n",ain_LM35DZ*100); + //take picture + main_camera(loop_count); } } \ No newline at end of file