-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Add OSD_TOTAL_PACKS (with betaflight/pull/10808) #2532
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
Conversation
src/js/tabs/osd.js
Outdated
| if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_42)) { | ||
| OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([ | ||
| F.STAT_TOTAL_FLIGHTS, | ||
| F.STAT_TOTAL_PACKS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be added to API_VERSION_1_44.
src/js/tabs/osd.js
Outdated
| if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) { | ||
| OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([ | ||
| F.TOTAL_FLIGHTS, | ||
| F.TOTAL_PACKS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this bit should go the last one on the list, the order is important here.
6fae571 to
ded6144
Compare
locales/en/messages.json
Outdated
| "description": "One of the statistics that can be shown at the end of the flight in the OSD" | ||
| }, | ||
| "osdDescStatTotalPacks": { | ||
| "message": "Total number of used packs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flown packs could be better? Need a native English speaker here :)
ded6144 to
2273b36
Compare
|
Accidently closed the PR alongside my rebase. Everything should work great right now. Please let me now. |
2558e29 to
bac67a4
Compare
asizon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Kudos, SonarCloud Quality Gate passed!
|
|
@bree29 - If you want this merged into 10.8, please squash your commits and indicate that you still think it is important. Otherwise we will tag it for 10.9 and think about it after 4.3 / 10.8 are released. |
|
Kudos, SonarCloud Quality Gate passed!
|
fa4bbad
c035192 to
fa4bbad
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
Just in case my updates from upstream will be an issue (the "one commit" thing, that were 5 here), just as it was in the betaflight part, I followed the same solution to update it to HEAD & squash my commit. Since I must do something wrong in my rebase sequences. Sorry for the inconvenience of having to re-approving it for merging. |
|
Merging upstream changes does count as commit but is actually not when rebasing. Found out after using letting vscode to do this for me. So I'm back on the command line. |
|
AUTOMERGE: (FAIL)
|
|
Firmware pr is labeled for 4.4,i think we are not in time to merge this new feature into 4.3 |
|
@limonspb , do I need to rebase before reviews are approved ? Same question for the firmware PR |
|
@bree29 there are no conflicts. Both PR's are ready to merge. Thanks! |









Add OSD_TOTAL_PACKS
Satisfies
Needs coordination with betaflight-configuratorlabel on the original PR #10808.I tested the betaflight-configurator on Linux64 platform, and with modified Betaflight 4.3 (the one in PR) on STM32F7X2 target
All settings went good on BF configurator and seems OK.
I'll test the feature itself this weekend ; all is looking good on the betaflight-configurator side.