CQ_KIT_Ver1_5
Dependencies: mbed RateLimiter BLDCmotorDriverCQ_KIT_Ver1_5
Diff: X_NUCLEO_IHM07M1/SPN7Driver.cpp
- Revision:
- 5:3290e8857120
- Parent:
- 4:3f63eed73ad1
- Child:
- 6:0eec4b6e94ba
diff -r 3f63eed73ad1 -r 3290e8857120 X_NUCLEO_IHM07M1/SPN7Driver.cpp --- a/X_NUCLEO_IHM07M1/SPN7Driver.cpp Fri Oct 14 13:45:35 2016 +0000 +++ b/X_NUCLEO_IHM07M1/SPN7Driver.cpp Mon Oct 17 11:11:52 2016 +0000 @@ -129,14 +129,8 @@ float d = (dutyCycle > 0) ? dutyCycle : -dutyCycle; // Update the logic inputs and the enable pins - //printf("Commutation sector %d\n\r", currentSector); for (int i = 0; i < 3; i++) { *EN[i] = (tab[currentSector][i] == ST_BLDC_OFF) ? 0 : 1; *IN[i] = (tab[currentSector][i] == ST_BLDC_HIGH) ? d : 0; -/* - int ena = (tab[currentSector][i] == ST_BLDC_OFF) ? 0 : 1; - float inp = (tab[currentSector][i] == ST_BLDC_HIGH) ? d : 0; - printf("EN[%d] = %d, IN[%d] = %f\n\r", i, ena, i, inp); -*/ } }