Reading Angle while is held at Controller.Axis.position >30

Hi: With the following code, the Angle motor will stop spinning past a position of 440 degrees only if the Controller (Axis2) is tapped >30 repeatedly. If the Controller Axis 2 is held >30 constantly, the Angle motor doesn’t stop. Seems that it doesn’t read the angle in that situation. So need a way to have the code read the Angle.position (degrees) on every loop. It is running in a task.

#include “declarations.h”

int UserContrTwo (){

while (true) {

//SHOOTER ANGLE
gShooterAngle = ShtrAngle.position (degrees) ;

if ((Angle.position (degrees) > 440) && (Angle.direction () == forward) ){
Angle.stop();
}

if (gShooterSide==1){ // 1 for Port 2 for Starboard
while ((Controller2.Axis2.position () > 30 ) &&
(ShtrAngle.position(degrees) < 440) ){
Angle.spin(reverse);
}
while ((Controller2.Axis2.position () < -30 ) && (AngleLimit.pressing() == false)){
Angle.spin(forward);
}
}
} // should close function
task::yield();
task::sleep(20);
//wait (10, msec);
return 0;
}