Trying to use the WithTimeout decorator using an inline declared command in my RobotContainer.
In RobotContainer.h
frc2::StartEndCommand m_ReleaseClimber{[this] {m_climber.WinchRetract();}, [this] {m_climber.WinchStop();}, {&m_climber}};
In RobotContainer.cpp in ConfigureButtonBindings
frc2::JoystickButton(&m_driver,5).WhenPressed(m_ReleaseClimber.WithTimeout(1.0_s));
Compile error saying Command::WithTimeout can’t be called on an lvaue, so I’m assuming decorator can’t be use the way I’m trying. (I suspected it was a problem because WhenPressed didn’t show up and an available method in the popup.