The software algorithm is designed to ensure compatibility between the commands given by the operator and the need to stabilize the CCD/IR payload. The implementation was made on a mini-turret with 2 degrees of freedom mounted on a miniUAV. Appropriate command and control functions were developed by programming an Atmel family microcontroller.