12.07.2015 Views

Handyboard and Kit Manual (A.K.A. - Botball Programming Guide)

Handyboard and Kit Manual (A.K.A. - Botball Programming Guide)

Handyboard and Kit Manual (A.K.A. - Botball Programming Guide)

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.

© 2002 D.Miller, KIPR33Example of Processes (2)void main(){int pid;// run s_waa function// as a parallel processpid=start_process(s_waa());sleep(10.0);/* if s_waa is still goingturn s_waa off */kill_process(pid);/* if s_waa timed out, turnoff sound & servo*/beeper_off();init_expbd_servos(0);}void s_waa(){float p;int s3; // servo valueinit_expbd_servos(1);while(!stop_button()){// run tone <strong>and</strong> servo upp=200.0; s3=200;while(p

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

Saved successfully!

Ooh no, something went wrong!