src/main/cpp/subsystems/DriveTrainSubsystemBase.cpp
void DriveTrainSubsystemBase::ForwardInSeconds(double goalTime, double speed)
{
    m_autoTimer.Stop();
    m_autoTimer.Reset();
    m_autoTimer.Start();
    units::second_t startTime = m_autoTimer.Get();
    do
    {
        Forward(speed);
    } while (goalTime > (double)m_autoTimer.Get()-(double)startTime);
    Stop();
}
//function used to turn the robot in seconds; Use at your own risk
function used to turn the robot in seconds; Use at your own risk
function used to turn the robot in seconds ; Use at your own risk
void DriveTrainSubsystemBase::ForwardInSeconds(double goalTime, double speed)
{
    m_autoTimer.Stop();
    m_autoTimer.Reset();
    m_autoTimer.Start();
    units::second_t startTime = m_autoTimer.Get();
    do
    {
        Forward(speed);
    } while (goalTime > (double)m_autoTimer.Get()-(double)startTime);
    Stop();
}
void DriveTrainSubsystemBase :: ForwardInSeconds ( double goalTime , double speed ) { m_autoTimer . Stop ( ) ; m_autoTimer . Reset ( ) ; m_autoTimer . Start ( ) ; units :: second_t startTime = m_autoTimer . Get ( ) ; do { Forward ( speed ) ; } while ( goalTime > ( double ) m_autoTimer . Get ( ) - ( double ) startTime ) ; Stop ( ) ; }
function used to turn the robot in seconds; Use at your own risk
function used to turn the robot in seconds ; Use at your own risk