mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-08-01 02:51:24 +00:00
i hate counting zeros
This commit is contained in:
@@ -29,8 +29,6 @@ unsigned long last, initTime;
|
||||
PWMServo yaw;
|
||||
PWMServo pitch;
|
||||
|
||||
int servoPos = 90; // variable to store the servo position;
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
|
||||
@@ -81,7 +79,7 @@ void loop() {
|
||||
|
||||
if ((State.z < 0.0) && (State.thrustFiring == 2)) {
|
||||
analogWrite(pin_igniter, 0);
|
||||
Serial.println("Run duration:" + String((micros() - initTime) / 1000000.0) +
|
||||
Serial.println("Run duration:" + String((micros() - initTime) / 1e6) +
|
||||
" seconds");
|
||||
printSimResults(State);
|
||||
|
||||
|
Reference in New Issue
Block a user