shown_task=-1 shown_lock=-1 shown_ebs=-1 if(current_task!=shown_task) { rw.txt="未知" rw.pco=33840 if(current_task==0) { rw.txt="无" rw.pco=63488 } if(current_task>=1&¤t_task<=6) { rw.pco=2016 } if(current_task==1) { rw.txt="八字绕环" } if(current_task==2) { rw.txt="直线加速" } if(current_task==3) { rw.txt="高速循迹" } if(current_task==4) { rw.txt="车检测试" } if(current_task==5) { rw.txt="EBS测试" } if(current_task==6) { rw.txt="手动驾驶" } bt0.val=0 if(current_task==1) { bt0.val=1 } bt1.val=0 if(current_task==2) { bt1.val=1 } bt2.val=0 if(current_task==3) { bt2.val=1 } bt3.val=0 if(current_task==4) { bt3.val=1 } bt4.val=0 if(current_task==5) { bt4.val=1 } bt5.val=0 if(current_task==6) { bt5.val=1 } shown_task=current_task } if(lock_state!=shown_lock) { sd.txt="锁定未知" sd.pco=33840 if(lock_state==1) { sd.txt="已锁定" sd.pco=2016 } if(lock_state==2) { sd.txt="已解锁" sd.pco=63488 } shown_lock=lock_state } if(ebs_state!=shown_ebs) { EBS.txt="EBS 未知" EBS.pco=33840 EBS.bco=0 if(ebs_state==1) { EBS.txt="EBS 正常" EBS.pco=65535 EBS.bco=2016 } if(ebs_state==2) { EBS.txt="EBS 故障" EBS.pco=65535 EBS.bco=63488 } shown_ebs=ebs_state }