|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
Re: Vision
Depends what you're trying to accomplish. I'll note that the post-processing you're doing in the lambda assumes the first contour it sees is one of the boiler stripes, which may not always be the case.
centerX() should synchronize on the lock, otherwise the main robot thread may not get the most recent values (or any values at all. Threads are weird that way). Code:
public double centerX() {
synchronized (imgLock) {
return centerX;
}
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|