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 BAE_CODE_MARCH_2017 by
Diff: main.cpp
- Revision:
- 15:e09aaaccf134
- Parent:
- 14:a9588f443f1a
- Child:
- 16:f9e484dc505e
- Child:
- 28:5f0f2a3f3e8d
- Child:
- 36:cc77770d787f
--- a/main.cpp Thu Apr 14 09:34:06 2016 +0000 +++ b/main.cpp Tue Apr 19 21:27:07 2016 +0000 @@ -238,7 +238,7 @@ pc.printf("gyro values\n\r"); //printing the angular velocity and magnetic field values for(int i=0; i<3; i++) { - pc.printf("%f\n\r",actual_data.AngularSpeed_actual[i]); + printf("%f\n\r",actual_data.AngularSpeed_actual[i]); } pc.printf("mag values\n\r"); for(int i=0; i<3; i++) @@ -429,9 +429,12 @@ while(1) { Thread::signal_wait(0x4); - wait_us(200); // can be between 38 to 15700 + wait_us(200); + //printf("\n\rreached\n"); // can be between 38 to 15700 if( slave.receive() == 0) - slave.stop(); + {slave.stop(); + //printf("\n\rnot send\n"); + } else if( slave.receive() == 1) // slave writes to master { if(data_send_flag == 'h') @@ -440,7 +443,9 @@ // pc.printf("\n\r here"); write_ack=slave.write(BAE_chardata,74); if(write_ack==0) - irpt_2_mstr = 0; + {irpt_2_mstr = 0; + printf("\n\rgot interrupt\n"); + } } else if(data_send_flag == 't') {