Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Make motor testing signal 0.2 instead of full power Testing with full power is too dangerous and inconvenient.

Oleg Kalachev06e20470978c
diff --git a/flix/motors.ino b/flix/motors.ino
index 42cb0c5..3289755 100644
--- a/flix/motors.ino
+++ b/flix/motors.ino
@@ -54,7 +54,7 @@ bool motorsActive() {
void testMotor(int n) {
print("Testing motor %d\n", n);
- motors[n] = 1;
+ motors[n] = 0.2;
delay(50); // ESP32 may need to wait until the end of the current cycle to change duty https://github.com/espressif/arduino-esp32/issues/5306
sendMotors();
pause(3);