CQ_KIT_Ver1_5
Dependencies: mbed RateLimiter BLDCmotorDriverCQ_KIT_Ver1_5
Diff: main.cpp
- Revision:
- 11:0120619cdfb7
- Parent:
- 10:5fbe1476624c
- Child:
- 12:33614e1dc638
diff -r 5fbe1476624c -r 0120619cdfb7 main.cpp --- a/main.cpp Wed Oct 19 09:30:46 2016 +0000 +++ b/main.cpp Thu Oct 20 14:26:13 2016 +0000 @@ -62,7 +62,7 @@ dc += 0.1f; M.setDutyCycle(dc); } - if((c == 's') && (dc >= 0.1f)) { + if((c == 's') && (dc > -0.9f)) { dc -= 0.1f; M.setDutyCycle(dc); }