Skip to content

Commit

Permalink
Set altitude on main descent init
Browse files Browse the repository at this point in the history
  • Loading branch information
SamHaggans committed Nov 18, 2021
1 parent c24adaf commit 9a3a526
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

void MainDescentState::init() {
transitionResetTimer = HM_Millis();
altitude = 0;
// TODO: Deploy main parachute
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MainDescentState : public State {

uint32_t transitionResetTimer;

double altitude = 0;
double altitude;
};

#ifdef __cplusplus
Expand Down

0 comments on commit 9a3a526

Please sign in to comment.