You could even simplify that instead of having the rightHalf variable:
Code:
else if (triggerPressed)
{
myRobot->TankDrive(leftJoystick->GetY()/2,rightJoystick->GetY()/2);
}
Edit: May I suggest having a trigger on each side slow down that side's motor instead of one on one side slowing them both down?