HEPTA-Sat Training 2022 / Mbed 2 deprecated Lab1-04_create_satellite_program_step2_Q

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
RyusukeIwata
Date:
Mon Nov 07 14:09:58 2022 +0000
Parent:
0:6ea3da70c580
Commit message:
change to raw

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 6ea3da70c580 -r ac7b6fd00c0f main.cpp
--- a/main.cpp	Thu Jul 02 08:53:03 2020 +0000
+++ b/main.cpp	Mon Nov 07 14:09:58 2022 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 
 DigitalOut cond[]={LED1,LED2,LED3,LED4};
-Serial gs(USBTX,USBRX); // for ground station
+RawSerial gs(USBTX,USBRX,9600); // for ground station
 int rcmd = 0,cmdflag = 0; //command variable
  
 //getting command and flag
@@ -24,7 +24,7 @@
 }
 
 int main() {
-    gs.baud(9600);
+
     gs.printf("From Sat : Operation Start...\r\n");
     int flag = 0;     // condition
     float sattime=0.0,btvol,temp; //Voltage, Temerature