mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-06-16 07:06:51 +00:00
Merge branch 'main' into '27-fix-simulation-on-teensy'
# Conflicts: # src/main.cpp
This commit is contained in:
commit
1e4ee942e2
@ -214,5 +214,9 @@ void closeFile() {
|
||||
|
||||
void teensyAbort() {
|
||||
while (1) {
|
||||
digitalWrite(BUILTIN_LED, HIGH);
|
||||
delay(1000);
|
||||
digitalWrite(BUILTIN_LED, LOW);
|
||||
delay(1000);
|
||||
}
|
||||
}
|
11
src/main.cpp
11
src/main.cpp
@ -11,6 +11,7 @@
|
||||
#elif defined(TEENSY)
|
||||
#include <Arduino.h>
|
||||
|
||||
int BUILTIN_LED = 13;
|
||||
unsigned long last;
|
||||
#endif
|
||||
|
||||
@ -90,16 +91,14 @@ void loop() {
|
||||
|
||||
if ((State.z < 0.0) && (State.thrustFiring == 2)) {
|
||||
printSimResults(State);
|
||||
init_Vehicle(State);
|
||||
delay(1000);
|
||||
Serial.println("Last run duration:" + String(millis() - last) + " ms");
|
||||
Serial.println("Run duration:" + String(millis() - last) + " ms");
|
||||
|
||||
closeFile();
|
||||
delay(20000);
|
||||
|
||||
Serial.println("Restarting Sim");
|
||||
Serial.println(
|
||||
"===============================================================");
|
||||
Serial.println("SUCCESS");
|
||||
Serial.println("Aborting Sim");
|
||||
teensyAbort();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user