[romi] Update Romi for parity with XRP (#7389)

This commit is contained in:
Kavin Muralikrishnan
2024-11-16 10:24:58 -05:00
committed by GitHub
parent 6eb652e10e
commit 1e545c38a8
11 changed files with 141 additions and 60 deletions

View File

@@ -13,6 +13,13 @@
class TurnTime : public frc2::CommandHelper<frc2::Command, TurnTime> {
public:
/**
* Creates a new TurnTime.
*
* @param speed The speed which the robot will turn. Negative is in reverse.
* @param time How much time to turn
* @param drive The drive subsystem on which this command will run
*/
TurnTime(double speed, units::second_t time, Drivetrain* drive)
: m_speed(speed), m_duration(time), m_drive(drive) {
AddRequirements(m_drive);