Lab5-02_uplink_downlink_lite

Dependencies:   mbed HEPTA_CDH_lite HEPTA_COM_lite HEPTA_SENSOR_lite HEPTA_EPS_lite

Files at this revision

API Documentation at this revision

Comitter:
heptasat2021
Date:
Tue Aug 24 02:52:11 2021 +0000
Parent:
2:7a7448b44db4
Commit message:
For Hepta-Sat Lite

Changed in this revision

HEPTA_SENSOR_lite.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 7a7448b44db4 -r 1392e060f3a2 HEPTA_SENSOR_lite.lib
--- a/HEPTA_SENSOR_lite.lib	Fri Aug 20 13:43:06 2021 +0000
+++ b/HEPTA_SENSOR_lite.lib	Tue Aug 24 02:52:11 2021 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/heptasat2021/code/HEPTA_SENSOR_lite/#82c6d3329af2
+https://os.mbed.com/users/heptasat2021/code/HEPTA_SENSOR_lite/#258d873c0246
diff -r 7a7448b44db4 -r 1392e060f3a2 main.cpp
--- a/main.cpp	Fri Aug 20 13:43:06 2021 +0000
+++ b/main.cpp	Tue Aug 24 02:52:11 2021 +0000
@@ -13,6 +13,8 @@
     sat.printf("Xbee Uplink Downlink Mode\r\n");
     int rcmd=0,cmdflag=0;
     float ax,ay,az;
+    eps.turn_on_regulator();//turn on 3.3V conveter
+    sensor.setup();
     for(int i=0;i<10;i++){
         com.xbee_receive(&rcmd,&cmdflag);
         com.printf("num=%d\r\n",i);