|

楼主 |
发表于 2009-3-23 12:31:24
|
显示全部楼层
open=0;' v7 K* d" C, X
( D2 @1 T/ F; }5 @7 `7 z1 ~
if (full_a2==1 and down_a==0 OR full_a1==0 and full_a2==0 and down_a==0)
! F: e; \# W6 q; M{6 _. G" j- t8 W0 J2 d
open=1;5 t7 d0 C2 W7 c1 F' E' `& e
which=0;
" T6 P5 s. Y* T& x}! j7 S% z+ w6 u' I3 o. a
else if (full_b2==1 and down_b ==0 OR full_b1==0 and full_b2==0 and down_b==0)- {" n1 w* S \$ C9 }: z
{
7 q8 A* w( V" w8 M# w3 T open =1;
2 l! t4 T+ [ w which=1;
* q) Z& ^; Q+ B3 r}
* @# C: G+ m! a/ d" ~- V现在的问题是,两台机a2==1很容易满足而b2==1的条件很难满足,而两台都idle时优先选A,所以B收到小球的机会很少。是不是我题目的表述有问题(站在Robot的角度)还是在换角度的时候有些因素没有考虑到。
9 U$ P, d5 m" N, j4 @, w( Q开始以为是Robot和A的处理时间差不多长造成的,于是把A 1和 B1的处理时间都加到100了但还是没有效果。 |
|