The increasingly complicating battlefield environment requests more intelligent and automotive weapon devices. As an important component, the sighting system has great influence on the performance of anti-aircraft gun system. Conformed the technology of embedded software and hardware, image processing and field-bus, we design and debug a full functional sighting system based on Vx Works operating system and PC/104. The system has the functions of tracking target and track solving. The system connects the servo systems with the CANopen field-bus to control them.Based on the requirements of system, firstly a platform for developing the system is deployed by configuring the Vx Works operating system and debugging related functional block; based on this platform, we implement and compare the performance of spatial edge orientation histogram based Mean Shift tracking algorithm and center-of-mass algorithm, Then a human-machine interaction function is realized by taking advantage of multi-task management mechanism and WindML of Vx Works. At last, in order to realize follow-up control function, we transplant fire-control algorithm which includes data acquisition, coordinate switching and solution of control value; and implement device drivers for CAN-bus, define and code CANopen protocol, design and realize communication system for servo control and nodes monitoring. |