|
Re: 95's Pre-season drive base done!
Hello, I am Daroc Alden.
My coach requested that everyone create an introductory post here, so here I am. I didn't work on the drive base itself, as I programmed the preseason robot. It is pretty simple; it just puts the right and left sticks directly into tank drive and uses the encoders to automatically shift gears. We're using java and the iterative robot template, so a lot of the work was done for us.
--
@P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{
@p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2) +=$f=!fork;map{$P=$P[$f^ord
($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&&
close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print
|