Notifications
Clear all

[Closed] Controller inbetween states?

I’m rapidly polling controller values from a backgroundworker thread, works fine the only thing is once every 100 polls or so I get a wrong value:


..
 "(matrix3 [0.934442,0.615229,0.56097] [-0.618739,1.07739,-0.150923] [-0.557096,-0.164648,1.10856] [18.7141,-180.753,-49.7024])"
 "(matrix3 [0.934442,0.615229,0.56097] [-0.618739,1.07739,-0.150923] [-0.557096,-0.164648,1.10856] [18.7141,-185.183,-50.3982])"
 "(matrix3 [0.934442,0.615229,0.56097] [-0.618739,1.07739,-0.150923] [-0.557096,-0.164648,1.10856] [18.7141,-189.038,-51.0037])"
 "(matrix3 [0.934442,0.615229,0.56097] [-0.618739,1.07739,-0.150923] [-0.557096,-0.164648,1.10856] [18.7141,-195.668,-52.0451])"
 "(matrix3 [0.934442,0.615229,0.56097] [-0.618739,1.07739,-0.150923] [-0.557096,-0.164648,1.10856] [18.7141,-199.538,-52.6528])"
 "(matrix3 [1.56638,0,0] [0,1.56638,0] [0,0,1.56638] [0,0,0])"  <---  **wierd value**
 "(matrix3 [0.934442,0.615229,0.56097] [-0.618739,1.07739,-0.150923] [-0.557096,-0.164648,1.10856] [18.7141,-208.93,-54.1281])"
 "(matrix3 [0.934442,0.615229,0.56097] [-0.618739,1.07739,-0.150923] [-0.557096,-0.164648,1.10856] [18.7141,-213.345,-54.8216])"
 "(matrix3 [0.934442,0.615229,0.56097] [-0.618739,1.07739,-0.150923] [-0.557096,-0.164648,1.10856] [18.7141,-217.214,-55.4294])"
 "(matrix3 [0.934442,0.615229,0.56097] [-0.618739,1.07739,-0.150923] [-0.557096,-0.164648,1.10856] [18.7141,-220.522,-55.949])"
 "(matrix3 [0.934442,0.615229,0.56097] [-0.618739,1.07739,-0.150923] [-0.557096,-0.164648,1.10856] [18.7141,-225.499,-56.7306])"
..
 

This happens while I move the object manually while it is being polled by the backgroundworker. My guess is Max is altering the matrix while it is being read and I see the same cat twice

So is there a way to somehow check if it is in a safe state?