|
|
|
|
@ -1064,7 +1064,7 @@ if (firstTime != ON)
|
|
|
|
|
|
|
|
|
|
float charging = current[map[PLUS_X]] + current[map[MINUS_X]] + current[map[PLUS_Y]] + current[map[MINUS_Y]] + current[map[PLUS_Z]] + current[map[MINUS_Z]];
|
|
|
|
|
current[map[BAT]] = current[map[BUS]] - charging;
|
|
|
|
|
batt -= (batt > 3.5) ? current[map[BAT]]/20000: current[map[BAT]]/2000;
|
|
|
|
|
batt -= (batt > 3.5) ? current[map[BAT]]/200000: current[map[BAT]]/20000;
|
|
|
|
|
voltage[map[BAT]] = batt;
|
|
|
|
|
|
|
|
|
|
// end of simulated telemetry
|
|
|
|
|
|