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

Improve OSD stats page avg efficiency value scaling #9109

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

rmaia3d
Copy link
Contributor

@rmaia3d rmaia3d commented Jun 9, 2023

Improves the value scaling of the AVG EFFICIENCY (mAh/km or similar) field in the OSD stats page (shown after craft disarming) when using BFCOMPAT modes.

The idea is that scaling to Ah/km only happens when the value is above 999mAh/km, and not when above 99mAh/km.

Only implemented for metric units, didn't change (nor test) for imperial units.

@MrD-RC
Copy link
Collaborator

MrD-RC commented Jun 10, 2023

TBH, I think this is more important for Imperial than for Metric. As a mile is a greater distance, so will always use more mAh.

@rmaia3d
Copy link
Contributor Author

rmaia3d commented Jun 10, 2023

TBH, I think this is more important for Imperial than for Metric. As a mile is a greater distance, so will always use more mAh.

Yes, you totally got a point there!

I have just added a commit with the same changes to the imperial units as well.

However, since I don't use imperial units in any of my crafts, if someone else could test it and provide feedback whether it's displaying as it should, it would be great!

@rmaia3d
Copy link
Contributor Author

rmaia3d commented Jun 30, 2023

Just a quick update. I have already flown this for two weekends with no major issues detected.

@DzikuVx DzikuVx added this to the 7.0 milestone Jul 4, 2023
@DzikuVx
Copy link
Member

DzikuVx commented Jul 4, 2023

Nice, thanks a lot!

@DzikuVx DzikuVx merged commit 09ed98a into iNavFlight:master Jul 4, 2023
@rmaia3d rmaia3d deleted the bfcompat_avg_efficiency branch February 19, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants