Skip to content

Commit

Permalink
Merge branch 'feature/tc_mux_simplification' of github.com:hytech-rac…
Browse files Browse the repository at this point in the history
…ing/MCU into feature/tc_mux_simplification
  • Loading branch information
RCMast3r committed Sep 18, 2024
2 parents 44d14e4 + 055792e commit d0b7925
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/systems/include/TorqueControllerMux.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ DrivetrainCommand_s TorqueControllerMux<num_controllers>::getDrivetrainCommand(C
current_status_.current_torque_limit_value = torque_limit_map_[requested_torque_limit];
current_output.command = apply_power_limit_(current_output.command, input_state.drivetrain_data, max_power_limit_, torque_limit_map_[requested_torque_limit]);
current_output.command = apply_positive_speed_limit_(current_output.command);
current_status_.output_is_bypassing_limits = false;
}
else{
current_status_.current_torque_limit_enum = TorqueLimit_e::TCMUX_FULL_TORQUE;
current_status_.current_torque_limit_value= PhysicalParameters::AMK_MAX_TORQUE;
current_status_.output_is_bypassing_limits = true;
}

// std::cout << "output torques before return " << current_output.command.torqueSetpoints[0] << " " << current_output.command.torqueSetpoints[1] << " " << current_output.command.torqueSetpoints[2] << " " << current_output.command.torqueSetpoints[3] << std::endl;
Expand Down

0 comments on commit d0b7925

Please sign in to comment.