Download technical manual
Transcript
Chapter 4 AVP Engine Thread The AVP Engine Thread is the main computation thread in the Sensor application. It has the highest priority of all threads, and it is designed to run at the same sample rate as the AVP image processing pipeline (if possible given processor constraints). The next section describes the computational framework, followed by sections describing the functionality of each piece in the framework. Finally, the protocol for communicating with other threads in the application and the external Stethoscope program is described in Sections 4.6 and 4.7. 4.1 Data Flow Design and Implementation As discussed previously in Chapter 2, the architecture for the AVP Engine Thread is described by the component-based data ow diagram of Figure 4.1. The diagram is simplied greatly for clarity of the overall design it is decomposed into several fully detailed subdiagrams in Section 4.5. This open, modular design enables programmers to make changes as needed to t future applications, simply by adding/deleting components and signals to connect to the existing data ow diagram. The data ow structure is enforced rigorously in the C++ code implementation. As described in more detail in the following sections, the components, signals, and parameters of the data ow diagram are implemented as class objects with the AVP Engine Thread, and each of the components are executed in order during every iteration of the thread 43