Team-1922 / TinMan2016

The year the code works
0 stars 0 forks source link

Assisted Shooting Fallback #19

Closed KevinMackenzie closed 8 years ago

KevinMackenzie commented 8 years ago

The PID Drive train may not be finished in time, therefore there must be some kind of assisted shooting fallback system. This should work as follows:

Have vertical line in the center of the view (or adjusted on the "Windage" cfg item). A smart dashbord item will tell the user whether or not the window is "on target" based on user adjustments. Green is On Target, but there will be a vector value of how far away the user is (in pixels) from being on target. THis also must take into account the distance the user is away from the window from ultrasonic OR viewed window width. This system will also have the potential issue of being time-delayed, but the user will get a feel as time goes on.

When the user chooses to start shooting, they will have reduced sensitivity on the controls (optional, perhaps a toggle button)

Potential Issues: -The line must be drawn by GRIP, which cannot get input from the user

KevinMackenzie commented 8 years ago

Commands needed: -SetDTSensitivityClutch -UpdateWindageViaThrottle -ResetWindageToCenter

KevinMackenzie commented 8 years ago

got function to return pixels per inch at a given distance (see OzMath for function) R squared = .9958

KevinMackenzie commented 8 years ago

Finished those aforementioned commands