Closed zappybiby closed 7 years ago
here is a video showing the current state of the PID: https://www.youtube.com/watch?v=DYe3aTquavc&feature=youtu.be
most of the problems are caused by the shaky IPM, which would be fixed if I can get the adaptive IPM to work in Windows...
The biggest problem right now is that if you manually move the mouse too far to the left or right, the mouse position loops and it finds a new center that actually is far from the center.
For example, I move the mouse from the actual center (512px) to the far left. Now it revenues at (460px), and then steers while thinking that is the new center.
You can test this by displaying the current mouse position and moving the mouse to the far left or right. The mouse position will "loop" which confuses our program.
My current fix is to right click in game, that prevents the program from moving and allows me to set a new center for the program
Maybe I can implement a way for it to right click every time it goes to the center?
Replace keyboard input with mouse input.