A Performance Analysis System for the Sport of Bowling
A Performance Analysis System for the Sport of Bowling
A Performance Analysis System for the Sport of Bowling
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Appendix A: SMARTDOT Module Embedded S<strong>of</strong>tware Flowcharts<br />
START<br />
CONTINUE<br />
A<br />
SAMPLING TASK FLOWCHART<br />
B<br />
Is<br />
Sampling<br />
Enabled?<br />
YES<br />
Initialize GROUP Variables<br />
Group Max = 0<br />
Group Min = 255<br />
Sample CNT = 0<br />
Write BUF Contents to<br />
EEPROM (8 bytes)<br />
Advance to Next Page <strong>of</strong><br />
EEPROM (8 bytes)<br />
NO<br />
IDLE MODE<br />
In<br />
TEST<br />
Mode?<br />
YES<br />
Wait <strong>for</strong><br />
SAMPLE Interrupt (T0)<br />
Reached<br />
End <strong>of</strong><br />
Sample<br />
Space?<br />
YES<br />
Overflow = TRUE<br />
NO<br />
Impact<br />
Detected?<br />
YES<br />
Set Impact Bit <strong>for</strong> Sample<br />
NO<br />
In<br />
AUTO<br />
Mode?<br />
NO<br />
NO<br />
Move Sample to BUF[PTR]<br />
PTR++<br />
NO<br />
Reached<br />
End <strong>of</strong><br />
Scratch<br />
Pad?<br />
YES<br />
YES<br />
Ball Rolling = TRUE<br />
Enable Sampling<br />
Reached<br />
End<br />
<strong>of</strong><br />
BUF?<br />
NO<br />
Initialize AUTO Detection<br />
PTR = BUF_BGN<br />
Local Max = Sample<br />
Local Min = Sample<br />
Group CNT = 0<br />
YES<br />
PTR = Buffer BGN<br />
YES<br />
Is<br />
Sampling<br />
Enabled?<br />
NO<br />
A<br />
B<br />
Figure A-3<br />
To: DISCRIMINATION<br />
AUTO DETECTION<br />
To: SHUTDOWN<br />
SAVE RUN TIME<br />
To: SHUTDOWN<br />
DONE<br />
SAMPLING<br />
A-4