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 Profiles page. #432

Merged
merged 1 commit into from
Feb 4, 2022
Merged

Conversation

klutvott123
Copy link
Member

Adds a page with pid and rate profile.
Because of how it's implemented in the firmware, both profiles can't be changed at the same time.

Fixes #430 #230 #47 #22

@klutvott123 klutvott123 added this to the 1.6 milestone Feb 3, 2022
@klutvott123 klutvott123 self-assigned this Feb 3, 2022
@@ -4,6 +4,10 @@ if apiVersion >= 1.036 then
PageFiles[#PageFiles + 1] = { title = "VTX Settings", script = "vtx.lua" }
end

if apiVersion >= 1.016 then
PageFiles[#PageFiles + 1] = { title = "Profiles", script = "profiles.lua" }
Copy link
Member

Choose a reason for hiding this comment

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

Move to line 12?

Copy link
Member Author

Choose a reason for hiding this comment

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

By having it like this the pages can be shuffled around as we please. and if a page is to be removed we have to break it out anyway. I also like the readability of the current approach of having a if for each page.

@klutvott123 klutvott123 merged commit 20beaab into betaflight:master Feb 4, 2022
@klutvott123 klutvott123 deleted the profile-select branch February 16, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants