CQ_KIT_Ver1_5
Dependencies: mbed RateLimiter BLDCmotorDriverCQ_KIT_Ver1_5
Diff: main.cpp
- Revision:
- 4:3f63eed73ad1
- Parent:
- 3:4c71d3475814
- Child:
- 5:3290e8857120
diff -r 4c71d3475814 -r 3f63eed73ad1 main.cpp --- a/main.cpp Thu Oct 13 15:48:50 2016 +0000 +++ b/main.cpp Fri Oct 14 13:45:35 2016 +0000 @@ -33,12 +33,13 @@ P_HALL1, P_HALL2, P_HALL3, // Hall sensors pins P_FAULT // Fault LED ); -// Duty cycle value to be used for speed control -float dc = 0.0f; int main() { printf("Press 'w' to speed up, 's' to speed down\n\r"); + // Duty cycle value to be used for speed control + float dc = 0.0f; + // sampleTime = 1e-3, switchingFrequency = 20e3, rampUpSlope = 1, rampDownSlope = -1 //M.configure(1e-3, 50e3, 0.1f, -0.1f);