mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Update Battery.md
False formula for the virtual current sensor
This commit is contained in:
parent
579f6e1de8
commit
adf0488d8d
1 changed files with 3 additions and 3 deletions
|
@ -158,7 +158,7 @@ The general method is:
|
|||
|
||||
Given (a) the reported mAh draw and the (b) mAh charging data, calculate a new `amperage_meter_scale` value as follows:
|
||||
```
|
||||
amperage_meter_scale = (charging_data_mAh / reported_draw_mAh) * old_amperage_meter_scale
|
||||
amperage_meter_scale = old_amperage_meter_scale * (charging_data_mAh / reported_draw_mAh)
|
||||
```
|
||||
For example, assuming:
|
||||
+ A Cleanflight reported current draw of 1260 mAh
|
||||
|
@ -167,8 +167,8 @@ For example, assuming:
|
|||
|
||||
Then the updated `amperage_meter_scale` is:
|
||||
```
|
||||
amperage_meter_scale = (charging_data_mAh / reported_draw_mAh) * old_amperage_meter_scale
|
||||
= (1158 / 1260) * 400
|
||||
amperage_meter_scale = old_amperage_meter_scale * (charging_data_mAh / reported_draw_mAh)
|
||||
= 400 * (1158 / 1260)
|
||||
= 368
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue