We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 802b478 commit 0542f77Copy full SHA for 0542f77
src/current_sense/InlineCurrentSense.cpp
@@ -25,7 +25,7 @@ InlineCurrentSense::InlineCurrentSense(float _mVpA, int _pinA, int _pinB, int _p
25
pinB = _pinB;
26
pinC = _pinC;
27
28
- volts_to_amps_ratio = _mVpA / 1000.0f; // mV to amps
+ volts_to_amps_ratio = 1000.0f / _mVpA; // mV to amps
29
// gains for each phase
30
gain_a = volts_to_amps_ratio;
31
gain_b = volts_to_amps_ratio;
0 commit comments