From 7f410bb2b9d0c910e467db9c3eab029a4d4f0b3c Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Mon, 18 Nov 2024 19:47:21 +0100 Subject: [PATCH 1/4] Fix formula --- docs/wiki/configurator/power-tab.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/configurator/power-tab.md b/docs/wiki/configurator/power-tab.md index 15278012e0..1cfcb58e44 100644 --- a/docs/wiki/configurator/power-tab.md +++ b/docs/wiki/configurator/power-tab.md @@ -73,7 +73,7 @@ Multiplier: 1 = this is to fine-tune the outcome of the calculation, a value of Settings for the amperage meter to measure the current draw correctly, using this formula: $$ -Current(Amps) = \frac\{ADC (mV)}\{amperage\_meter\_scale \times 10 + \frac\{amperage\_meter\_offset}\{1000}} +Current(Amps) = \frac{ADC (mV)}{amperage\_meter\_scale} \times 10 + \frac{amperage\_meter\_offset}{1000} $$ ### Scale From b84656b9f297286aceb57fad13238c1af05db627 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Mon, 18 Nov 2024 21:25:03 +0100 Subject: [PATCH 2/4] Revision --- docs/wiki/configurator/power-tab.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/configurator/power-tab.md b/docs/wiki/configurator/power-tab.md index 1cfcb58e44..679fd1cdb3 100644 --- a/docs/wiki/configurator/power-tab.md +++ b/docs/wiki/configurator/power-tab.md @@ -73,7 +73,7 @@ Multiplier: 1 = this is to fine-tune the outcome of the calculation, a value of Settings for the amperage meter to measure the current draw correctly, using this formula: $$ -Current(Amps) = \frac{ADC (mV)}{amperage\_meter\_scale} \times 10 + \frac{amperage\_meter\_offset}{1000} +Current(Amps) = \frac{ADC (mV)}{amperage\_meter\_scale \times 10} + \frac{amperage\_meter\_offset}{1000} $$ ### Scale From b366efe10e9c534014806b689500f77d079db6bd Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sat, 23 Nov 2024 01:01:39 +0100 Subject: [PATCH 3/4] According to code --- docs/wiki/configurator/power-tab.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/configurator/power-tab.md b/docs/wiki/configurator/power-tab.md index 679fd1cdb3..016a32ea74 100644 --- a/docs/wiki/configurator/power-tab.md +++ b/docs/wiki/configurator/power-tab.md @@ -73,7 +73,7 @@ Multiplier: 1 = this is to fine-tune the outcome of the calculation, a value of Settings for the amperage meter to measure the current draw correctly, using this formula: $$ -Current(Amps) = \frac{ADC (mV)}{amperage\_meter\_scale \times 10} + \frac{amperage\_meter\_offset}{1000} +Current(Amps) = (\frac{ADC (mV) * 10000}{amperage\_meter\_scale} + amperage\_meter\_offset) / 1000 $$ ### Scale From 54f23a00394c8ecd804db6c1d96a10c5a85f09ec Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Mon, 25 Nov 2024 20:41:43 +0100 Subject: [PATCH 4/4] Refactor formula --- docs/wiki/configurator/power-tab.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/configurator/power-tab.md b/docs/wiki/configurator/power-tab.md index 016a32ea74..dc6a711781 100644 --- a/docs/wiki/configurator/power-tab.md +++ b/docs/wiki/configurator/power-tab.md @@ -73,7 +73,7 @@ Multiplier: 1 = this is to fine-tune the outcome of the calculation, a value of Settings for the amperage meter to measure the current draw correctly, using this formula: $$ -Current(Amps) = (\frac{ADC (mV) * 10000}{amperage\_meter\_scale} + amperage\_meter\_offset) / 1000 +\text{Current[A] = } \frac{\text{ADC[mV]} \cdot 10}{\text{amperage\_meter\_scale}} + \frac{\text{amperage\_meter\_offset}}{1000} $$ ### Scale