Also, the way I have the hotspot set up is as a variable within a class:
self.hotspotTolerance = 1
So what I "want" to happen is that anytime both my current yaw AND pitch are within 1 degree of the target yaw AND pitch (which I need to be a fixed value) then I trigger the next target. But the way the code reads above--it has a < sign. I need it to be 0 < x < 1--I don't know how to set that. Otherwise the hotspots get triggered if I'm far enough away that I produce a negative yaw and pitch.
|