Code for a self aiming turret gun made for ITSP which would be driven by RPi and Adafruit Motor Hat.
This can mainly be used for security and defence purposes.It currently has 2 modes in which it can be operated-
1.Motion Detection-Will align and shoot any motion it detects in its field of view.
2.Interactive mode-We can control the alignment of the gun and its shooting using keyboard controls.