Skip to content

Add OSD warnings to telemetry pages with voice messages#516

Open
vishwamartur wants to merge 1 commit intobetaflight:masterfrom
vishwamartur:add-osd-warnings
Open

Add OSD warnings to telemetry pages with voice messages#516
vishwamartur wants to merge 1 commit intobetaflight:masterfrom
vishwamartur:add-osd-warnings

Conversation

@vishwamartur
Copy link
Copy Markdown

Related to #345

Add OSD warnings/messages integration into telemetry pages with voice messages for DJI FPV System users.

  • Modify src/SCRIPTS/BF/background.lua to handle OSD warnings/messages by adding a new function handleOsdWarnings and calling it in run_bg.
  • Add support for sending OSD warnings/messages via telemetry in src/SCRIPTS/BF/MSP/crsf.lua, src/SCRIPTS/BF/MSP/ghst.lua, and src/SCRIPTS/BF/MSP/sp.lua.
  • Add logic to trigger voice messages based on OSD warnings/messages in src/SCRIPTS/BF/MSP/messages.lua.
  • Create a new Lua script src/SCRIPTS/BF/osd_warnings.lua to handle OSD warnings and convert them into telemetry data.
  • Update telemetry page scripts in src/SCRIPTS/BF/PAGES/failsafe.lua and src/SCRIPTS/BF/PAGES/pos_osd.lua to display OSD warnings.

Related to betaflight#345

Add OSD warnings/messages integration into telemetry pages with voice messages for DJI FPV System users.

* Modify `src/SCRIPTS/BF/background.lua` to handle OSD warnings/messages by adding a new function `handleOsdWarnings` and calling it in `run_bg`.
* Add support for sending OSD warnings/messages via telemetry in `src/SCRIPTS/BF/MSP/crsf.lua`, `src/SCRIPTS/BF/MSP/ghst.lua`, and `src/SCRIPTS/BF/MSP/sp.lua`.
* Add logic to trigger voice messages based on OSD warnings/messages in `src/SCRIPTS/BF/MSP/messages.lua`.
* Create a new Lua script `src/SCRIPTS/BF/osd_warnings.lua` to handle OSD warnings and convert them into telemetry data.
* Update telemetry page scripts in `src/SCRIPTS/BF/PAGES/failsafe.lua` and `src/SCRIPTS/BF/PAGES/pos_osd.lua` to display OSD warnings.
Copy link
Copy Markdown
Member

@haslinghuis haslinghuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this function be switched on / off ?

@haslinghuis
Copy link
Copy Markdown
Member

@pfeerick have you seen this 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants