Lab5-03_create_satcode_step6_lite_Q
Dependencies: mbed HEPTA_CDH_lite HEPTA_COM_lite HEPTA_SENSOR_lite HEPTA_EPS_lite
Diff: main.cpp
- Revision:
- 5:1f73ab69f023
- Parent:
- 4:52de4bb3146f
--- a/main.cpp Tue Aug 24 02:55:33 2021 +0000 +++ b/main.cpp Wed Aug 25 06:31:05 2021 +0000 @@ -77,26 +77,13 @@ } fclose(fp); }else if(rcmd == 'c'){ - sat.printf("rcmd=%c,cmdflag=%d\r\n",rcmd,cmdflag); - com.printf("Hepta-Sat Lite Uplink Ok\r\n"); - float ax,ay,az; - for(int i = 0; i < 10; i++) { - sensor.sen_acc(&ax,&ay,&az); - com.printf("%f,%f,%f\r\n",ax,ay,az); - wait_ms(1000); - } + //Please insert your answer + }else if(rcmd == 'd'){ - sat.printf("rcmd=%c,cmdflag=%d\r\n",rcmd,cmdflag); - com.printf("Hepta-Sat Lite Uplink Ok\r\n"); - float gx,gy,gz; - for(int i = 0; i < 10; i++) { - sensor.sen_gyro(&gx,&gy,&gz); - com.printf("%f,%f,%f\r\n",gx,gy,gz); - wait_ms(1000); - } + //Please insert your answer + }else if(rcmd == 'e'){ - - + //Please insert your answer } com.initialize(); //initializing