Skip to content

Commit

Permalink
Add print
Browse files Browse the repository at this point in the history
  • Loading branch information
gabekole committed Oct 1, 2024
1 parent 0884dfc commit e457d5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ void Controller::CalculateInput(){
if(input.norm() > MissionConstants::kMaximumTvcAngle){
input = input*MissionConstants::kMaximumTvcAngle/input.norm();
}


std::cout << "Calculating input: " << std::to_string(input(0)) << ", " << std::to_string(input(0)) << std::endl;

// Figures out what angle we need to move the servos and then set them
// [TODO] Move to hardware tvc_angles = TvcMath(input);
tvc.SetTVCX(input(0));
Expand Down
2 changes: 1 addition & 1 deletion src/Mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ bool Mode::Update(Navigation& navigation, Controller& controller, Igniter& ignit
// Update navigations and controller's loopTime to be changeTime which should be 0.005 each time
navigation.loopTime = change_time;
controller.loopTime = change_time;
// TODO [MOVE TO FUNCTION CALLS FOR CONTROLLER AND NAVIGATION]
// TODO [MOVE TO FUNCTION CALLS FOR CONTROLLER AND NAV]


/* Handle behavior based on current phase. Update phase*/
Expand Down

0 comments on commit e457d5a

Please sign in to comment.