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

Req: Battery voltage warnings setup via LUA from radio #505

Open
neprsitady opened this issue Apr 9, 2024 · 2 comments
Open

Req: Battery voltage warnings setup via LUA from radio #505

neprsitady opened this issue Apr 9, 2024 · 2 comments

Comments

@neprsitady
Copy link

Hey team,

would it be possible to add the Battery voltage warning and minimum values to the LUA scripts as well?

Use case: Currently have the warnings set for li ion batteries but fly with lipos as well and cant change these without computer. (Profile dependent battery settin would be great in BF, but I see it could bring troubles to begginers)

@neprsitady neprsitady changed the title Feature req: Battery voltage warnings setup via LUA from radio Req: Battery voltage warnings setup via LUA from radio Apr 9, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within a week.

Copy link

Issue closed automatically as inactive.

@haslinghuis haslinghuis reopened this May 17, 2024
vishwamartur added a commit to vishwamartur/betaflight-tx-lua-scripts that referenced this issue Dec 29, 2024
Related to betaflight#505

Add battery voltage warning and minimum values configuration via LUA scripts from the radio.

* **New LUA Script**: Add `src/SCRIPTS/BF/battery_voltage.lua` to handle battery voltage warning and minimum values configuration.
  * Define functions to read and set battery voltage warning values for different battery types (Li-ion, LiPo).
  * Use MSP commands to communicate with the flight controller.
* **Pages Update**: Modify `src/SCRIPTS/BF/pages.lua` to include a new page entry for battery settings configuration.
  * Add a new page entry with the title "Battery Settings" and script "battery_voltage.lua".
* **UI Update**: Modify `src/SCRIPTS/BF/ui.lua` to include the new battery settings page in the UI menu.
  * Add the new battery settings page to the UI menu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants