<< return to Pixycam.com

Pan tilt avoids object

I have designed and 3d printed my own pan tilt mechanism and it seems as though It is unable to track an object but rather avoids the object, I have tried to flip orientation of the servos but it still doesn’t work, I have seen that another user was able to rewire the serves by changing the black and red wire in the servo, I would prefer not to open up the serves or mess with the servo connectors, so ultimately I am looking for a possible software based change in the servos, if even possible. If any one would be able to point me in the right direction as to how to do this or even if a possible upgrade to PixyMon to where the servos would be able to be reversed would be greatly appreciated.

ok so basically if i understand this correctly when the “blob” as designated in the code is to the right of the field of view, it talks to the servos to move to the right, but mine is moving to the left so if i give a negative of what its seeing then in theory it should move to the left. I have found this with in the code specifically (pixy-master-> Video-> progpt.cpp) were to adjust this values but i am unsure how to then upload it to the pixy. I know I’m going into more depth than probably needed but again i would like to fix this issue software rather then mechanical right now.

Hi Ryan,

That is one approach you could use. Another would be to find the function calls that manipulate the servos directly and negate one or both of the values. How is your progress?

Scott