Pre-Auton For PROS

PROS has a function called Initialize and at first, I thought it was like the pre-auton task in robotc. However, it isn’t and for the past few days, I’ve been trying to figure out how to get it to work. I’ve tried many options like making it a task and activating between auton and driver and using the init itself and using a while loop like the one below. However, they don’t seem to work. Is there a way to do this?

void initialize() {

  while(!isAutonomous() && !isEnabled()) {

    //stuff that would normally be in pre auton




I’d recommend simplifying the logic down to


. This would also be a good place to use a separate task, that way you can guarantee that your autonomous/opcontrol runs.