Update cubesatsim.ino

pull/264/head
alanbjohnston 3 years ago committed by GitHub
parent 8a81598ac5
commit 537355283d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -851,8 +851,8 @@ void generate_simulated_telem() {
// IHUcpuTemp = (int)((tempS + rand_float(-1.0, 1.0)) * 10 + 0.5);
other[IHU_TEMP] = tempS;
// voltage[mapping[BUS]] = rand_float(5.0, 5.005);
// current[mapping[BUS]] = rand_float(158, 171);
voltage[mapping[BUS]] = rand_float(5.0, 5.005);
current[mapping[BUS]] = rand_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) + rand_float(-4.0, 4.0));

Loading…
Cancel
Save

Powered by TurnKey Linux.