[commands] Fix clang-tidy warnings (#5402)

This commit is contained in:
Tyler Veness
2023-06-19 23:01:46 -07:00
committed by GitHub
parent 991f4b0f62
commit 1501607e48
2 changed files with 5 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ RamseteCommand::RamseteCommand(
m_pose(std::move(pose)),
m_controller(controller),
m_feedforward(feedforward),
m_kinematics(kinematics),
m_kinematics(std::move(kinematics)),
m_speeds(std::move(wheelSpeeds)),
m_leftController(std::make_unique<frc2::PIDController>(leftController)),
m_rightController(std::make_unique<frc2::PIDController>(rightController)),
@@ -45,7 +45,7 @@ RamseteCommand::RamseteCommand(
m_pose(std::move(pose)),
m_controller(controller),
m_feedforward(feedforward),
m_kinematics(kinematics),
m_kinematics(std::move(kinematics)),
m_speeds(std::move(wheelSpeeds)),
m_leftController(std::make_unique<frc2::PIDController>(leftController)),
m_rightController(std::make_unique<frc2::PIDController>(rightController)),
@@ -64,7 +64,7 @@ RamseteCommand::RamseteCommand(
: m_trajectory(std::move(trajectory)),
m_pose(std::move(pose)),
m_controller(controller),
m_kinematics(kinematics),
m_kinematics(std::move(kinematics)),
m_outputVel(std::move(output)),
m_usePID(false) {
AddRequirements(requirements);
@@ -80,7 +80,7 @@ RamseteCommand::RamseteCommand(
: m_trajectory(std::move(trajectory)),
m_pose(std::move(pose)),
m_controller(controller),
m_kinematics(kinematics),
m_kinematics(std::move(kinematics)),
m_outputVel(std::move(output)),
m_usePID(false) {
AddRequirements(requirements);