Experimental/2021/RomiToy2021/src/main/cpp/subsystems/Drivetrain.cpp
/**
 * Controls each side of the drive directly with a voltage.
 *
 * @param left the commanded left output
 * @param right the commanded right output
 */
Controls each side of the drive directly with a voltage.
@param left the commanded left output
@param right the commanded right output
Controls each side of the drive directly with a voltage . @param left the commanded left output @param right the commanded right output
void Drivetrain::TankDriveVolts(units::volt_t left, units::volt_t right) {
  m_leftMotor.SetVoltage(left);
  m_rightMotor.SetVoltage(-right);
  m_drive.Feed();
}
void Drivetrain :: TankDriveVolts ( units :: volt_t left , units :: volt_t right ) { m_leftMotor . SetVoltage ( left ) ; m_rightMotor . SetVoltage ( - right ) ; m_drive . Feed ( ) ; }
Controls each side of the drive directly with a voltage.
Controls each side of the drive directly with a voltage .