Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of QM_BAE_review_1 by
Diff: main.cpp
- Revision:
- 7:a46a1dee4497
- Parent:
- 6:036d08b62785
- Child:
- 8:82250e41da81
--- a/main.cpp Fri Jan 22 19:51:50 2016 +0000
+++ b/main.cpp Sat Jan 23 11:35:20 2016 +0000
@@ -48,6 +48,8 @@
Timer t_rfsilence;
Timer t_start;
+Timer t_tc;
+Timer t_tm;
Serial pc(USBTX, USBRX);
int power_flag_dummy=2;
float data[6];
@@ -415,12 +417,18 @@
else if( slave.receive()==3 || slave.receive()==2) // slave read
{
read_ack=slave.read(telecommand,tc_len);
+ t_tc.start();
//pc.printf("\n\rTELECOMMAND received from CDMS is %s \n",telecommand);
- //pc.printf("\n\r Executing Telecommand \n");
+ pc.printf("\n\r Executing Telecommand \n");
// FCTN_TC_DECODE((uint8_t*) telecommand);
+
uint8_t* temp = FCTN_BAE_TM_TC((uint8_t*) telecommand);
telemetry = (char*)temp;
+
FCTN_TM();
+ t_tc.stop();
+ printf("\n\r time taken %d",t_tc.read_us());
+ t_tc.reset();
// for(int i = 0; i<134; i++)
//pc.printf("%c", telemetry[i]);
}
