![](/media/cache/group/nine_tails_kurama_by_zubair43-d4zyf5s.jpg.50x50_q85.jpg)
Updated PWM working; Entering nominal mode
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of TFR_BAE_vr1_1working_finally_USE_FOR_TESTING by
Diff: main.cpp
- Revision:
- 11:0f71a96987bd
- Parent:
- 10:54598e22a857
--- a/main.cpp Wed Mar 30 13:17:52 2016 +0000 +++ b/main.cpp Thu Mar 31 11:44:20 2016 +0000 @@ -266,17 +266,22 @@ ACS_STATUS = '4'; // set ACS_STATUS = ACS_NOMINAL_ONLY FCTN_ACS_CNTRLALGO(actual_data.Bvalue_actual,actual_data.AngularSpeed_actual); printf("\n\r moment values returned by control algo \n"); + + moment[0] = 1; + moment[1] = 1.09; + moment[2] = 0.9; for(int i=0; i<3; i++) { printf("%f\t",moment[i]); } - - // FCTN_ACS_GENPWM_MAIN(moment) ; + + FCTN_ACS_GENPWM_MAIN(moment) ; + //wait(2); - PWM1 = 0.5; - PWM2 = 0.5; - PWM3 = 0.5; + // PWM1 = 0.5; + // PWM2 = 0.5; + //PWM3 = 0.5; } else { @@ -790,4 +795,3 @@ //FCTN_BAE_INIT(); while(1); //required to prevent main from terminating } -