Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OSD warnings to telemetry pages with voice messages #516

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vishwamartur
Copy link

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
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 ?

src/SCRIPTS/BF/background.lua Show resolved Hide resolved
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.

2 participants