![](/media/cache/group/nine_tails_kurama_by_zubair43-d4zyf5s.jpg.50x50_q85.jpg)
FINAL ACS TO BE USED FOR TESTING. COMMISSIONING, ACS MAIN, DATA ACQ ALL DONE.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of ACS_FULL_Flowchart_BAE by
Diff: main.cpp
- Revision:
- 15:e09aaaccf134
- Parent:
- 14:a9588f443f1a
- Child:
- 16: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') {