Programming Options

I don’t think what you’re suggesting is likely to work, unless Simulink exposes testable state variables such that the code can determine that the joystick competition port sees “Autonomous” and “Disabled”; that’s when pre-autonomous runs. @Jpearman did a great writeup about field control some time ago. Let me see if I have it marked…nope; have to search…Here it is: