Update cubesatsim.ino

pull/153/head
alanbjohnston 4 years ago committed by GitHub
parent 066633e7c1
commit f6d0dd855e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -144,13 +144,16 @@ void loop() {
// delay(2000); // delay(2000);
// test_radio(); // test_radio();
digitalWrite(LED_BUILTIN, LOW); if (mode == FSK) {
digitalWrite(LED_BUILTIN, LOW);
// delay(3000); digitalWrite(MAIN_LED_BLUE, LOW);
sleep(2.845); // 3.0);
digitalWrite(LED_BUILTIN, HIGH); // delay(3000);
sleep(0.5); // 2.845); // 3.0);
digitalWrite(LED_BUILTIN, HIGH);
digitalWrite(MAIN_LED_BLUE, HIGH);
}
// send telemetry // send telemetry
// delay some time // delay some time
@ -533,7 +536,7 @@ void get_tlm_fox() {
sampleTime = (unsigned int) millis(); sampleTime = (unsigned int) millis();
} else { } else {
Serial.println("first time - no sleep\n"); Serial.println("first time - no sleep");
// firstTime = OFF; // firstTime = OFF;
} }
@ -553,7 +556,7 @@ void get_tlm_fox() {
// Serial.print(voltage_min[count1]); // Serial.print(voltage_min[count1]);
// Serial.print(" "); // Serial.print(" ");
} }
Serial.println(" "); // Serial.println(" ");
for (int count1 = 0; count1 < 3; count1++) { for (int count1 = 0; count1 < 3; count1++) {
if (other[count1] < other_min[count1]) if (other[count1] < other_min[count1])
other_min[count1] = other[count1]; other_min[count1] = other[count1];

Loading…
Cancel
Save

Powered by TurnKey Linux.