Quasics2016Code/SimpleRobot/src/Subsystems/DriveSystem.cpp
// Put methods for controlling this subsystem
// here. Call these from Commands.
Put methods for controlling this subsystem
here. Call these from Commands.
Put methods for controlling this subsystem here . Call these from Commands .
void DriveSystem::MoveLeft(double percentPower) {
    leftPower = 0;
    if (fabs(percentPower) >= deadbandWidth) {
        leftPower = percentPower;
    }
    if (percentPower > 0) {
        isLeftForward = true;
    }
    else {
        isLeftForward = false;
    }
    leftFront->Set(leftPower / 100);
    leftRear->Set(leftPower / 100);
}
void DriveSystem :: MoveLeft ( double percentPower ) { leftPower = 0 ; if ( fabs ( percentPower ) >= deadbandWidth ) { leftPower = percentPower ; } if ( percentPower > 0 ) { isLeftForward = true ; } else { isLeftForward = false ; } leftFront -> Set ( leftPower / 100 ) ; leftRear -> Set ( leftPower / 100 ) ; }
Put methods for controlling this subsystem
here.
Put methods for controlling this subsystem here .