How do I change turret targeting parameters?
You will need to get a copy of 'Total Hack Magazine', it comes with a Holotape to reprogram turrets.
One can be found in the wild wood cemetery - to the north east of Rotten Landfill. The Holotape is in the center of the graveyard under the big tree.
After you get that all you need to do is insert the Holotape into the terminal that controls the turrets then from their you can choose how you want it to react to you and enemies.