Over Feed Code Help

I am competing in the VEX Nothing but net compitition and my robot is a corner shooter looking at a 60degree angle but I need to turn my fly week to 54% power to make it in high i feel that if i make a timer in the code to put the shorter on full power then overfeed the balls at a specific rate so the shooter can use its full power and i can have a high rate of fire. the mock code I have now goes a little like this

int n=0;
while 1==1
{
if (vexRT[Btn8U] == 1) //Button to activate the over feed mode
{
nMotorEncoder[tl] = 0
wait1Msec(50)
n = nMotorEncoder[tl]
if (n > 10)
{
motor[port10] = 127;
}
else
{
motor[port10] = 127;
}
}
else
{
motor[port10] = 0;
}
}

I’m not quite sure what the question is. If you are asking “will this work?”, then all I can say is it;s a good idea and you need to try it on your robot. The code you posted above may need a little modification to work, try this.

#pragma config(I2C_Usage, I2C1, i2cSensors)
#pragma config(Sensor, I2C_1,  ,               sensorQuadEncoderOnI2CPort,    , AutoAssign )
#pragma config(Motor,  port10,          theMotor,      tmotorVex393_HBridge, openLoop, encoderPort, I2C_1)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

task main()
{
  int n=0;
  
  while(1)
    {
    if (vexRT[Btn8U] == 1) //Button to activate the over feed mode
      {
      nMotorEncoder[theMotor] = 0;
      wait1Msec(50);
      n = nMotorEncoder[theMotor];
      
      if (n > 10)
        {
        motor[port10] = 54;
        }
      else
        {
        // Power boost
        motor[port10] = 127;
        }
      }
    else
      {
      motor[port10] = 0;
      }
    
    wait1Msec(10);  
    }
}

You will have to figure out the threshold for “n” by trial and error. Perhaps make n a global variable so you can see it in the debugger window.