Making an ESP32-based quadcopter from scratch
Python arduinoautopilotcontrol-theorydroneesp32flight-controlflight-controllermavlinkquadcopterquadcopter-firmwareuav
Minor fixes and updates
Oleg Kalachev26a0dd65bebd
diff --git a/docs/user.md b/docs/user.mdindex 2752327..a00b137 100644--- a/docs/user.md+++ b/docs/user.md@@ -5,7 +5,8 @@ This page contains user-built drones based on the Flix project. Publish your pro---Author: [Неруш Михаил](https://t.me/NerushMV).<br>-Description: custom frame made of 4 mm plywood, 8520 brushed motors, 75 mm propellers, MPU-6500. FlySky FS-i6X with ESP32-based adapter for ESP-NOW communication (using PPM output).+Description: custom frame made of 4 mm plywood, 8520 brushed motors, 75 mm propellers, MPU-6500. FlySky FS-i6X with ESP32-based adapter for ESP-NOW communication (using PPM output).<br>+Sources and materials: [link](https://drive.google.com/drive/folders/1uWiDcuorLrtVs_IIR7Y13omij-7Q1nx8).<img src="img/user/nerush/1.jpg" height=200> <img src="img/user/nerush/2.jpg" height=200>diff --git a/flix/flix.ino b/flix/flix.inoindex 16b62aa..615664b 100644--- a/flix/flix.ino+++ b/flix/flix.ino@@ -17,7 +17,7 @@ extern float motors[4];void setup() {Serial.begin(115200);- print("Initializing flix\n");+ print("Initializing Flix\n");setupParameters();setupPower();setupLED();diff --git a/flix/motors.ino b/flix/motors.inoindex 1540ac4..9654eec 100644--- a/flix/motors.ino+++ b/flix/motors.ino@@ -17,7 +17,7 @@ int pwmMax = -1; // -1 means duty cycle modeconst int MOTOR_REAR_LEFT = 0, MOTOR_REAR_RIGHT = 1, MOTOR_FRONT_RIGHT = 2, MOTOR_FRONT_LEFT = 3;void setupMotors() {- print("Setup Motors\n");+ print("Setup motors\n");// Configure pinsfor (int i = 0; i < 4; i++) {if (motorPins[i] < 0) continue; // skip unassigned motors@@ -25,7 +25,6 @@ void setupMotors() {pwmFrequency = ledcChangeFrequency(motorPins[i], pwmFrequency, pwmResolution); // when reconfiguring}sendMotors();- print("Motors initialized\n");}void sendMotors() {diff --git a/tools/pyflix/README.md b/tools/pyflix/README.mdindex 138878f..b5b61d8 100644--- a/tools/pyflix/README.md+++ b/tools/pyflix/README.md@@ -222,6 +222,13 @@ The following scripts demonstrate how to use the library:* [`log.py`](../log.py) — download flight logs from the drone.* [`example.py`](../example.py) — a simple example, prints telemetry data and waits for events.+> [!TIP]+> Set `FLIX_DEVICE` environment variable to use these tools with ESP-NOW connection, for example:+>+> ```bash+> FLIX_DEVICE=/dev/cu.usbserial-0001 tools/cli.py+> ```+## Advanced usage### MAVLink