Repository navigation
Conversation
Web remote: the firmware serves a remote control page at http://192.168.4.1/ (AP mode) or at the drone's IP (STA mode), so the drone can be flown from a phone browser without any app. - Two virtual sticks (the throttle holds its position), expo curve and adjustable sensitivity; arm/stop buttons; STAB/ACRO/RAW switch. - Tilt control: roll and pitch follow the phone's tilt relative to its pose when the mode is switched on, with a gain slider. Experimental lift control changes the throttle when the phone is raised or lowered. - Attitude indicator, motor outputs, battery voltage, link latency and packet loss, loop rate. - Console with the drone's log, command input and history; the telemetry received by the page can be saved as CSV. - The page only displays telemetry until the user touches a stick, arms or enables the tilt control, so it doesn't fight another remote. The HTTP server runs in its own task on core 0 and only stores the latest sticks and queued commands, which loopWebRC() applies in the main loop. When the page stops sending, the regular RC loss failsafe lands the drone. Low battery failsafe: when the voltage is measured, refuse arming at or below PWR_VOLT_LOW and land if the voltage stays there for 3 s in flight. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Author
|
A note on the tilt control (flying by the phone's gyroscope): it is more of a fun feature than a serious one. It is mostly for kids, and for that it works well: it turned out simple and really enjoyable to fly. But overall it is a toy, so feel free to treat it as optional. |
Author
|
One more thought: it probably makes sense to build a mobile app on top of this page, if you want one. It should not be hard to do, both for Android (an APK) and for iOS. |
Author
|
About the failing
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A remote control page served by the drone itself: connect a phone to the
flixWi-Fi network, openhttp://192.168.4.1/and fly. No app to install.The PR also adds a low battery failsafe (
safety.ino): when the voltage is measured, arming is refused at or belowPWR_VOLT_LOW, and the drone lands if the voltage stays there for 3 s in flight.How it works
flix/webrc.inorunsWebServerin its own task on core 0. The task only stores the latest stick values and queued commands;loopWebRC()applies them inside the main loop, so a slow client never stalls the flight loop.flix/webrc_page.his the page (plain HTML/CSS/JS, no external resources).Testing
esp32andesp32c3targets locally; I did not finish checking the other targets.gazebo/flix.h), iOS, the low battery landing in a real flight, and the lift control beyond first tries, so it is marked experimental.Notes
chrome://flags→ Insecure origins treated as secure).🤖 Generated with Claude Code