1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-08-02 11:31:34 +00:00

Formal build for Avionics Integration Test

This commit is contained in:
bpmcgeeney
2021-11-14 16:41:25 -07:00
parent 82e43b1fe8
commit e6f7e4c160
3 changed files with 8 additions and 7 deletions

View File

@@ -75,7 +75,7 @@ void setup() {
testGimbal(servo1, servo2);
Serial.println("Servos Tested");
delay(1000);
delay(3000);
Serial.println("Simulated Vehicle Initalized");
// Determine when to burn
@@ -104,17 +104,18 @@ void loop() {
State.time += State.stepSize;
if ((State.z < 0.0) && (State.thrustFiring == 2)) {
printSimResults(State);
Serial.println("Run duration:" + String(micros() - initTime) + " us");
closeFile();
delay(20000);
delay(3000);
Serial.println("SUCCESS");
Serial.println("Aborting Sim");
teensyAbort();
}
delay(20 - ((micros() - last) * 1000.0));
delay(20.0 - ((micros() - last) / 1000.0));
}
void init_loadCells() {