Yes. In JROTC.
developed an electromechanical system more complicated than an RC car?
Before arduino was even a thing, I wrote a bit-banging controller for a converting tiltrotor VTOL. (We were using the GPIO of a "Gumstix" micro linux board to produce the PWM signals for something like 6 motors with partial automation to continuously mix the vertical-mode and horizontal modes of control, dependent on wing tilt, so bit-banging a microcontroller was the only way we could do it at the time.) The model tiltrotor project was headed by a friend whose father worked on the actual LTV XC-142, so it was quite complex. The complete tiltrotor never flew, but the "Gumstix" did fly on a delta wing plane.
Because what you just described is a fantasy.
More like fodder for near-future spy thriller Sci-fi, but it is well grounded in reality.
The TrackingPoint rifles actually did work, and there is one with an 1800 yard range. The controller on a Linux system is the thing which actually pulled the trigger, relying on the operator to hold the rifle in the correct orientation. When it calculated there would be a hit, the computer pulled the trigger.
https://arstechnica.com/gadgets/2015/01/trackingpoint-shows-...
Mounting such a device on a large enough drone should be well within the capability of folks like CIA contractors.