1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-06-16 15:17:23 +00:00

i hate counting zeros

This commit is contained in:
Anson Biggs 2021-11-22 13:41:11 -07:00
parent 3a2773891f
commit 166b8c5920

View File

@ -29,8 +29,6 @@ unsigned long last, initTime;
PWMServo yaw; PWMServo yaw;
PWMServo pitch; PWMServo pitch;
int servoPos = 90; // variable to store the servo position;
void setup() { void setup() {
Serial.begin(9600); Serial.begin(9600);
@ -81,7 +79,7 @@ void loop() {
if ((State.z < 0.0) && (State.thrustFiring == 2)) { if ((State.z < 0.0) && (State.thrustFiring == 2)) {
analogWrite(pin_igniter, 0); analogWrite(pin_igniter, 0);
Serial.println("Run duration:" + String((micros() - initTime) / 1000000.0) + Serial.println("Run duration:" + String((micros() - initTime) / 1e6) +
" seconds"); " seconds");
printSimResults(State); printSimResults(State);