View Single Post
  #1   Spotlight this post!  
Unread 12-07-2013, 21:26
autox_vette autox_vette is offline
Registered User
FRC #2451 (PWNAGE)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Oswego, Il
Posts: 32
autox_vette is on a distinguished road
Setting/changing priorities

In order for our shooter to quickly reposition itself, we are running some pretty aggressive gains on the PID which is controlling the shooter angle. A side effect of this is that the PID is very sensitive to the timing in the loop which contains it (we had problems at championships when we had a gyro getting initialized during the begin VI. 20% of the time the PID would go unstable when trying to position the shooter during autonomous).

I'm thinking that making the loop containing the PID be a higher priority than the other base code would help with this, but we are a bit confused when it comes to setting priorities.

We have found that we can set the priority of a VI to one of 5-6 enumerations by setting it in the VI properties. Or we can set a priority on the timed loop to a value of 1-65,535. We tried to put a display on a basic timed loop to see what the priority is, and it is showing a steady 100 for a priority, but if we probe the value, it shows 0.

We don't know what value to set the priority in a timed loop since we don't know what the priority is of a "normal" loop. We asked the instructor that was at a clinic some members attended and he said that the priority was set in the FPGA and didn't know what a "normal" value is.

Does anyone know what the priorities are of a basic while loop?

Thanks,
Kenton
Reply With Quote