From f25933a1e8177074b8c9771375f40862cb41cae3 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 13 Oct 2024 10:45:17 -0400 Subject: [PATCH] Update main.c sim data BAT2 is 0 --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 5d159397..3e3e1c35 100644 --- a/main.c +++ b/main.c @@ -805,8 +805,8 @@ int main(int argc, char * argv[]) { // IHUcpuTemp = (int)((tempS + rnd_float(-1.0, 1.0)) * 10 + 0.5); other[IHU_TEMP] = tempS; - voltage[map[BUS]] = rnd_float(5.0, 5.005); - current[map[BUS]] = rnd_float(158, 171); + voltage[map[BUS]] = 0.0; // rnd_float(5.0, 5.005); + current[map[BUS]] = 0.0; // rnd_float(158, 171); // 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]]; float charging = eclipse * (fabs(amps_max[0] * 0.707) + fabs(amps_max[1] * 0.707) + rnd_float(-4.0, 4.0));