mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilibc] Fix Mecanum & Swerve ControllerCommand lambda capture (#3795)
Fixes #3765 Also fixes SwerveControllerCommand example calling command twice.
This commit is contained in:
@@ -86,7 +86,7 @@ frc2::Command* RobotContainer::GetAutonomousCommand() {
|
||||
|
||||
// no auto
|
||||
return new frc2::SequentialCommandGroup(
|
||||
std::move(swerveControllerCommand), std::move(swerveControllerCommand),
|
||||
std::move(swerveControllerCommand),
|
||||
frc2::InstantCommand(
|
||||
[this]() {
|
||||
m_drive.Drive(units::meters_per_second_t(0),
|
||||
|
||||
Reference in New Issue
Block a user