Skip to content

Commit

Permalink
change moding framework
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamSmego committed Mar 13, 2021
1 parent 6391f51 commit caf627d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
8 changes: 6 additions & 2 deletions main/mission_constants.hh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ const bool eraseFlash=false;
enum Mode {
STARTUP_STABLE = 0,
NAVIGATION = 1,
BURN_BABY_BURN = 2,
SHUTDOWN_STABLE = 3
COUNTDOWN = 2,
FINAL_COUNTDOWN = 3,
PREP_TVC = 4,
BURN_BABY_BURN = 5,
TRANSFER_DATA = 6,
SHUTDOWN_STABLE =7
};

// timing
Expand Down
8 changes: 8 additions & 0 deletions main/moding.hh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@


bool change_mode_to_navigation(bool);
bool change_mode_to_countdown(bool);
bool change_mode_to_final_countdown(bool);
bool change_mode_to_prep_tvc(bool);
bool change_mode_to_burn_baby_burn(bool);
bool change_mode_to_transfer_data(bool);
bool change_mode_to_shutdown_stable(bool);

void transition_to_navigation();
void transition_to_countdown();
void transition_to_final_countdown();
void transition_to_prep_tvc();
void transition_to_burn_baby_burn();
void transition_to_transfer_data();
void transition_to_shutdown_stable();

#endif // __MODING_HH__
1 change: 0 additions & 1 deletion main/workspace.hh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class Workspace
Mode mode = STARTUP_STABLE;

// Servos
Servo servo_top; // servo in the drop mechanism
Servo tvc_x; // servo that actuates TVC around x body axis
Servo tvc_y; // servo that actuates TVC around x body axis

Expand Down

0 comments on commit caf627d

Please sign in to comment.