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 0994853 commit 92915ffCopy full SHA for 92915ff
src/current_sense/GenericCurrentSense.cpp
@@ -41,9 +41,9 @@ void GenericCurrentSense::calibrateOffsets(){
41
// read all three phase currents (if possible 2 or 3)
42
PhaseCurrent_s GenericCurrentSense::getPhaseCurrents(){
43
PhaseCurrent_s current = readCallback();
44
- current.a = (current.a - offset_ia);// amps
45
- current.b = (current.a - offset_ib);// amps
46
- current.c = (current.a - offset_ic); // amps
+ current.a = (current.a - offset_ia); // amps
+ current.b = (current.b - offset_ib); // amps
+ current.c = (current.c - offset_ic); // amps
47
return current;
48
}
49
0 commit comments