mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-06-16 15:17:23 +00:00
Merge branch 'op_dem' of https://gitlab.com/lander-team/lander-cpp into op_dem
This commit is contained in:
commit
c30984600d
@ -229,7 +229,21 @@ void thrustInfo(Vehicle &State) {
|
||||
State.burnStart = State.time;
|
||||
State.burnElapsed = 0.0;
|
||||
|
||||
// Save load cell values before ignition
|
||||
double lc_val = State.lc0_processed + State.lc1_processed +
|
||||
State.lc2_processed + State.lc3_processed;
|
||||
|
||||
// CONTACT
|
||||
Serial.println("CONTACT");
|
||||
digitalWrite(pin_igniter, HIGH);
|
||||
|
||||
// Wait for motor to start burning
|
||||
Serial.println("waiting for motor to start.");
|
||||
while (lc_val * 1.5 < State.lc0_processed + State.lc1_processed +
|
||||
State.lc2_processed + State.lc3_processed) {
|
||||
;
|
||||
}
|
||||
|
||||
State.thrustFiring = 1;
|
||||
|
||||
} else if (State.thrustFiring == 1) {
|
||||
|
@ -66,7 +66,7 @@ void loop() {
|
||||
vehicleDynamics(State, PrevState);
|
||||
thrustInfo(State);
|
||||
pidController(State, PrevState);
|
||||
TVC(State, PrevState);
|
||||
thrustInfo(State);
|
||||
processTVC(State, yaw, pitch);
|
||||
|
||||
write2CSV(State);
|
||||
|
Loading…
x
Reference in New Issue
Block a user