Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Use the new UART2 pins for RC by default To make it consistent with the documentation

Oleg Kalachev048a3c6375fc
diff --git a/flix/rc.ino b/flix/rc.ino
index adc723a..7af6e25 100644
--- a/flix/rc.ino
+++ b/flix/rc.ino
@@ -9,7 +9,7 @@
int channelNeutral[] = {995, 883, 200, 972, 512, 512, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int channelMax[] = {1651, 1540, 1713, 1630, 1472, 1472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
-SBUS RC(Serial2, 16, 17); // NOTE: remove pin numbers (16, 17) if you use the new default pins for Serial2 (4, 25)
+SBUS RC(Serial2); // NOTE: Use RC(Serial2, 16, 17) if you use the old UART2 pins
void setupRC() {
Serial.println("Setup RC");