Repository navigation
HDZero goggle OSD via ELRS backpack (ESP-NOW): last lap, best 3 conse… - #21
Open
renanbsantos wants to merge 2 commits into
Open
renanbsantos wants to merge 2 commits into
renanbsantos wants to merge 2 commits into
Conversation
…cutive, idle status/RSSI
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
18 of 27 tasks
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.
How it works
lib/WEBSERVER/elrs_osd.h/.cpp(kept inside WEBSERVER to avoid a new lib folder).MSP_ELRS_SET_OSD(0x00B6) over ESP-NOW, unicast to the bind-phrase UID (MD5 of-DMY_BINDING_PHRASE="..."), same as the ExpressLRS Timer backpack / VRxC_ELRS.main.cpp:elrsOsd.begin()beforews.init(); inloop()feedssetStatus()(C5 online, race pilot, RSSI, enter threshold,timer.isRaceRunning()) and callselrsOsd.loop();elrsOsd.onLap()right afterbroadcastLapEvent().webserver.cpp: in AP mode with the OSD enabled, usesWIFI_AP_STA, sets the STA MAC to the UID (+ LR protocol), forces the softAP to channel 1, then starts ESP-NOW. Stops ESP-NOW when switching to STA. Registers the settings routes.isRaceRunning()edges, soLapTimeris untouched.loop(); lap events are queued (safe from other tasks).MD5Builder:mbedtls_md5_startsdoesn't link on Arduino core 2.0.17.Settings
elrsosd), not in the EEPROM config struct. I didn't touch_reservedELRS/ the config version; happy to move them into the config if you prefer./elrsosd. API:GET/POST /api/elrsosd,POST /api/elrsosd/test.Not tested / limitations
LapTimer, so the OSD only covers the single race pilot.#defines at the top ofelrs_osd.cpp(English); the settings page is standalone and not hooked into the main settings UI or i18n yet.Written with AI assistance (Claude); please review accordingly.