01.06.2015 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.7.5 The Ball is Rolling<br />

If <strong>the</strong> wave<strong>for</strong>m is still valid after 600 msecs (when <strong>the</strong> active EEPROM scratch pad has<br />

been filled) and sampling is enabled (see "Sampling Modes" below), <strong>the</strong> module begins<br />

overwriting <strong>the</strong> previous wave<strong>for</strong>m data stored in <strong>the</strong> main sample memory in EEPROM<br />

with <strong>the</strong> data from <strong>the</strong> wave<strong>for</strong>m it is currently sampling. The module continues to<br />

sample, store, and validate <strong>the</strong> new wave<strong>for</strong>m <strong>for</strong> up to 3.533 seconds (424 samples),<br />

depending upon <strong>the</strong> sampling mode currently selected.<br />

2.7.6 Sampling Modes<br />

The SMARTDOT module can execute three different sampling modes: AUTO mode,<br />

SINGLE mode, and TEST mode. Bits 1, 5, and 6 <strong>of</strong> SDM_CFG_BYTE, shown in<br />

Figure 2-5b, are used to store <strong>the</strong> sampling mode. Also, refer again to Figure A-3<br />

(Sampling Task Flowchart) and Figure A-4 (Discrimination Task Flowchart).<br />

• AUTO mode enables <strong>the</strong> module to automatically capture every valid wave<strong>for</strong>m it<br />

detects. If <strong>the</strong> previously captured wave<strong>for</strong>m is not uploaded to <strong>the</strong> COMM wand<br />

be<strong>for</strong>e <strong>the</strong> next valid wave<strong>for</strong>m is detected, <strong>the</strong> previous data is overwritten with<br />

<strong>the</strong> new data. Since <strong>the</strong> module always stores <strong>the</strong> wave<strong>for</strong>m <strong>of</strong> <strong>the</strong> most recent<br />

ball rolled, this mode is useful when <strong>the</strong> bowler wants to upload <strong>the</strong> latest<br />

wave<strong>for</strong>m, based on <strong>the</strong> observation <strong>of</strong> an interesting or unusual ball reaction,<br />

without having to interact with <strong>the</strong> module be<strong>for</strong>e every shot.<br />

• SINGLE mode enables <strong>the</strong> module to store a new wave<strong>for</strong>m only after <strong>the</strong><br />

previous wave<strong>for</strong>m has been uploaded to <strong>the</strong> COMM wand. Uploading <strong>the</strong><br />

previous data automatically enables capture <strong>of</strong> <strong>the</strong> next valid wave<strong>for</strong>m. If <strong>the</strong><br />

previous data has not been uploaded, <strong>the</strong> module will not capture a new<br />

wave<strong>for</strong>m. This mode is useful when <strong>the</strong> bowler wants to look at specific shots<br />

(such as <strong>the</strong> first ball <strong>of</strong> each frame), but doesn't want to be required to upload <strong>the</strong><br />

data in <strong>the</strong> middle <strong>of</strong> a frame.<br />

• TEST mode enables <strong>the</strong> module to capture a wave<strong>for</strong>m only when it has been<br />

expressly instructed to do so. On <strong>the</strong> first valid release following each receipt <strong>of</strong><br />

<strong>the</strong> TEST command, <strong>the</strong> module bypasses <strong>the</strong> wave<strong>for</strong>m discrimination and<br />

validation routine and unconditionally samples <strong>the</strong> resulting wave<strong>for</strong>m <strong>for</strong> <strong>the</strong><br />

maximum 3.533 seconds. This mode is useful <strong>for</strong> recording events that fall<br />

outside <strong>of</strong> <strong>the</strong> module's current definition <strong>for</strong> a valid wave<strong>for</strong>m.<br />

2.7.7 Shutdown<br />

Ra<strong>the</strong>r than require <strong>the</strong> module to collect data <strong>for</strong> <strong>the</strong> full sample time <strong>of</strong> 3.533 seconds,<br />

<strong>the</strong> discrimination and validation routine is used to limit <strong>the</strong> total run time <strong>of</strong> <strong>the</strong> module.<br />

The module shuts down when <strong>the</strong> first <strong>of</strong> two shutdown conditions occurs: ei<strong>the</strong>r <strong>the</strong> end<br />

<strong>of</strong> <strong>the</strong> sample space is reached at 3.533 seconds, or <strong>the</strong> wave<strong>for</strong>m discrimination routine<br />

determines that <strong>the</strong> wave<strong>for</strong>m has become invalid, signifying that <strong>the</strong> ball has stopped<br />

rolling (entered <strong>the</strong> pit at <strong>the</strong> end <strong>of</strong> <strong>the</strong> lane). Once <strong>the</strong> module detects a shutdown, it<br />

updates <strong>the</strong> total run time, <strong>the</strong> activation count, and <strong>the</strong> ball count, and goes back to sleep.<br />

Refer to Figure A-10 (Shutdown Task Flowchart).<br />

25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!