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

Fixed incorrect formula to find new amperage scale using battery charger measurement in Wiki #519

Merged

Conversation

ramkrishna757575
Copy link
Contributor

The battery charger measurement method to tune the amperage scale state the formula as:

amperage_meter_scale = old_amperage_meter_scale * (mAh_recharged / cleanflight_reported_mAh_drawn)

This is incorrect. The actual formula should be:

amperage_meter_scale = old_amperage_meter_scale * (cleanflight_reported_mAh_drawn / mAh_recharged)

Copy link

netlify bot commented Feb 9, 2025

Deploy Preview for origin-betaflight-com ready!

Name Link
🔨 Latest commit b3d6040
🔍 Latest deploy log https://app.netlify.com/sites/origin-betaflight-com/deploys/67a92b825ea1780008ba4c72
😎 Deploy Preview https://deploy-preview-519.dev.web.betaflight.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ramkrishna757575 ramkrishna757575 changed the title Fixed incorrect formula to find new amperage scale using battery charger measurement Fixed incorrect formula to find new amperage scale using battery charger measurement in Wiki Feb 9, 2025
amperage_meter_scale = old_amperage_meter_scale * (mAh_recharged / cleanflight_reported_mAh_drawn)
= 400 * (1500 / 2000)
= 300
amperage_meter_scale = old_amperage_meter_scale * (cleanflight_reported_mAh_drawn / mAh_recharged)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
amperage_meter_scale = old_amperage_meter_scale * (cleanflight_reported_mAh_drawn / mAh_recharged)
amperage_meter_scale = old_amperage_meter_scale * (reported_mAh_drawn / mAh_recharged)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@haslinghuis I have now removed the cleanflight prefix from the formula

Copy link
Member

Choose a reason for hiding this comment

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

@ramkrishna757575 removed other non related references (for the sake of consistency) - hope you appreciate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ramkrishna757575 removed other non related references (for the sake of consistency) - hope you appreciate.

sure...thanks for the review and the updates to the PR :)

haslinghuis
haslinghuis previously approved these changes Feb 9, 2025
Copy link

sonarqubecloud bot commented Feb 9, 2025

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.

Removed other non related references

@VitroidFPV VitroidFPV merged commit deab2dd into betaflight:master Feb 10, 2025
10 checks passed
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