|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: PSA: Enable Vision Race Condition
Or replace any instance of the "Enable Vision" variable with a true Boolean.
|
|
#2
|
||||
|
||||
|
Re: PSA: Enable Vision Race Condition
If you do that while using the variable to simultaneously enable vision code and turn on a ring light, the ring light will be always on, which is not allowed.
|
|
#3
|
|||
|
|||
|
Re: PSA: Enable Vision Race Condition
Wouldn't it make more sense to create a variable to control your ring light rather than alter the way it's already functioning to control the vision system as a whole?
|
|
#4
|
|||
|
|||
|
Re: PSA: Enable Vision Race Condition
Per which rule? I'm not seeing it.
|
|
#5
|
||||
|
||||
|
Re: PSA: Enable Vision Race Condition
R07-M.
It seems clumsy to leave your vision code, which uses a lot of resources, running when it's not in use. Just my opinion, so I followed it. |
|
#6
|
||||
|
||||
|
Re: PSA: Enable Vision Race Condition
R07-M really depends on which light source you're using. If you're using something with a 300 lumen output, you're probably going to have a bad time, but if you're simply just using the LED ring in FC or a smaller LED that was mentioned in another thread, I doubt anyone will rule that illegal. Please note: I am not an inspector. Please at least run it though a spike just in case. The ability to be able to turn it off will not be a bad choice at all. |
|
#7
|
|||
|
|||
|
Re: PSA: Enable Vision Race Condition
I'd imagine you're planning on your team operating in the portions of the field clouded by one, or both, airships. Is your vision code not streaming a feed to your drivers to help them drive the robot in these cases?
|
|
#8
|
||||
|
||||
|
Re: PSA: Enable Vision Race Condition
The streaming code is a self-looping VI that starts when Vision Processing.vi initializes. It is separate from the actual vision loop that you write. It lies far outside the Enable Vision case structure.
Last edited by flemdogmillion : 07-02-2017 at 13:55. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|