shown_task=-1
shown_lock=-1
shown_ebs=-1
shown_as=-1
if(current_task!=shown_task)
{
  rw.txt="未知"
  rw.pco=33840
  if(current_task==0)
  {
    rw.txt="无"
    rw.pco=63488
  }
  if(current_task>=1&&current_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
}
if(as_state!=shown_as)
{
  xstr 194,215,108,30,0,33840,0,1,1,1,"无人未知"
  if(as_state==0)
  {
    xstr 194,215,108,30,0,65535,0,1,1,1,"AS OFF"
  }
  if(as_state==1)
  {
    xstr 194,215,108,30,0,65504,0,1,1,1,"AS Ready"
  }
  if(as_state==2)
  {
    xstr 194,215,108,30,0,65504,0,1,1,1,"AS Driving"
  }
  if(as_state==3)
  {
    xstr 194,215,108,30,0,31,0,1,1,1,"AS Finished"
  }
  if(as_state==4)
  {
    xstr 194,215,108,30,0,63488,0,1,1,1,"AS Emergency"
  }
  if(as_state==5)
  {
    xstr 194,215,108,30,0,2016,0,1,1,1,"有人驾驶"
  }
  shown_as=as_state
}
