11.11.2014 Views

RoBOP-a-Mole - helix

RoBOP-a-Mole - helix

RoBOP-a-Mole - helix

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

public void inspect() { //initialize vector to hold information on where blobs are. {<br />

means no blob, 1 means the hole is occupied. int A1, A2, A3, A4, A5, A6, A7, A8, A9; A1=2;A2=0;A3=0;A4=0;A5=0;A6=0;A7=0;A8=0;A9=0; //0<br />

statements to examine each hole. If hole is occupied, //output array<br />

(B1.NumBlobs > 0) {A1 = 1;} //if<br />

(B2.NumBlobs 0) {A2 if (B3.NumBlobs > 0) {A3 if<br />

(B4.NumBlobs {A4 (B5.NumBlobs {A5 (B6.NumBlobs {A6 if (B7.NumBlobs > 0) {A7 = 1;}<br />

(B8.NumBlobs {A8 = 1;} if (B9.NumBlobs > 0)<br />

Appendix E. DVT Sensor Code<br />

findTheBlob class<br />

RegisterWriteShort(86,A9);<br />

RegisterWriteShort(84,A8);<br />

= 1;} RegisterWriteShort(70,A1); RegisterWriteShort(72,A2); {A9<br />

RegisterWriteShort(76,A4); RegisterWriteShort(78,A5); RegisterWriteShort(80,A6); RegisterWriteShort(74,A3);<br />

RegisterWriteShort(82,A7);

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

Saved successfully!

Ooh no, something went wrong!