fix bugs
This commit is contained in:
parent
83989d8e40
commit
4aa117841f
|
@ -457,7 +457,7 @@ void loop(void)
|
||||||
|
|
||||||
for (int i = 0; i < LINE_COUNT; i++)
|
for (int i = 0; i < LINE_COUNT; i++)
|
||||||
{
|
{
|
||||||
points[i][count % point_count] = uint16_t(abs(ina.readShuntCurrent() - 0.0026f) * 50) + 65;
|
points[i][count % point_count] = -uint16_t(abs(ina.readShuntCurrent() - 0.0026f) * 50) + 65;
|
||||||
// points[1][count % point_count] = -uint16_t(ina.readBusVoltage() * 5) + 65;
|
// points[1][count % point_count] = -uint16_t(ina.readBusVoltage() * 5) + 65;
|
||||||
}
|
}
|
||||||
++count;
|
++count;
|
||||||
|
|
Loading…
Reference in New Issue