Brushless motor with ESC
Revision 1:dcaabc5ac6b8, committed 2021-03-09
- Comitter:
- glanier9
- Date:
- Tue Mar 09 15:14:52 2021 +0000
- Parent:
- 0:378b1492eaf6
- Commit message:
- Final version;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun May 14 12:38:56 2017 +0000
+++ b/main.cpp Tue Mar 09 15:14:52 2021 +0000
@@ -24,7 +24,7 @@
wait(8);
//ESC now operational using standard servo PWM signals
while (1) {
- for (float p=0.0; p<=1.0; p += 0.025) { //Throttle up slowly to full throttle
+ for (float p=0.0; p<=0.3; p += 0.025) { //Throttle up slowly to full throttle
myservo = p;
ledf = p;
wait(1.0);
@@ -32,7 +32,7 @@
myservo = 0.0; //Motor off
ledf = ledr = 0;
wait(4.0);
- for (float p=1.0; p>=0.0; p -= 0.025) { //Throttle down slowly from full throttle
+ for (float p=0.3; p>=0.0; p -= 0.025) { //Throttle down slowly from full throttle
myservo = p;
ledr = p;
wait(1.0);