Good thing they have that first law that prevents them from doing evil.
(Only applicable to sentient robots, of course)
This would be trivial to automate https://archive.org/details/AC-130_Gunship_Ops_in_Afghanista...
This video was linked to in that article, http://www.wired.com/dangerroom/2007/10/video-robo-weap/ hopefully every soldier, programmer, and engineer working on these systems has to watch similar videos so that they know the importance of getting this stuff right.