![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Lab5
Dependencies: mbed HeptaBattery SDFileSystem HeptaCamera_GPS Hepta9axis HeptaTemp HeptaXbee
Diff: main.cpp
- Revision:
- 17:994a95b50791
- Parent:
- 14:bf2ca1f15a76
--- a/main.cpp Tue Aug 21 05:58:29 2018 +0000 +++ b/main.cpp Tue Dec 18 13:11:38 2018 +0000 @@ -26,15 +26,19 @@ if(rcmd == 'h') { cam_gps.gps_setting(); char gx[4],gy[4],gz[4],ax[4],ay[4],az[4],mx[4],my[4],mz[4],lad[8],log[8],height[4],bt[4],temper[4]; - for(int i = 0; i < 50; i++) { + float gx1,gy1,gz1; + for(int i = 0; i < 1000000; i++) { n_axis.sen_gyro_u16(gx,gy,gz); + n_axis.sen_gyro(&gx1,&gy1,&gz1); n_axis.sen_acc_u16(ax,ay,az); n_axis.sen_mag_u16(mx,my,mz); battery.vol_u16(bt); temp.temp_sense_u16(temper); cam_gps.lat_log_sensing_u16(lad,log,height); xbee.putc('H'); + pc.printf("gx=%f,gx16=%c%c%c%c\r\n",gx1,gx[0],gx[1],gx[2],gx[3]); xbee.xbee_transmit(gx,gy,gz,ax,ay,az,mx,my,mz,lad,log,height,bt,temper); + } xbee.initialize(); }