void displayLane()
        {
            int         current_lane = (int)get_current_pos();
            laneId_enum id_          = (laneId_enum)get_Lane(current_lane, LeftLane_veh, MidLane_veh, RightLane_veh);

            switch (id_)
            {
            case laneId_enum.LEFT_LANE:
                bt_LeftLane_pred.BackColor  = Color.Lime;
                bt_MidLane_pred.BackColor   = def_but_bg_color;
                bt_RightLane_pred.BackColor = def_but_bg_color;
                break;

            case laneId_enum.MID_LANE:
                bt_LeftLane_pred.BackColor  = def_but_bg_color;
                bt_MidLane_pred.BackColor   = Color.Lime;
                bt_RightLane_pred.BackColor = def_but_bg_color;
                break;

            case laneId_enum.RIGHT_LANE:
                bt_LeftLane_pred.BackColor  = def_but_bg_color;
                bt_MidLane_pred.BackColor   = def_but_bg_color;
                bt_RightLane_pred.BackColor = Color.Lime;;
                break;
            }
        }
        laneId_enum get_current_pos()
        {
            laneId_enum current_lane = laneId_enum.RIGHT_LANE;

            if (rb_LeftLane.Checked)
            {
                current_lane = laneId_enum.LEFT_LANE;
            }
            else if (rb_MidLane.Checked)
            {
                current_lane = laneId_enum.MID_LANE;
            }

            return(current_lane);
        }
        void set_current_pos(laneId_enum id)
        {
            rb_LeftLane.Checked  = false;
            rb_MidLane.Checked   = false;
            rb_RightLane.Checked = false;

            switch (id)
            {
            case laneId_enum.LEFT_LANE:
                rb_LeftLane.Checked = true;
                break;

            case laneId_enum.MID_LANE:
                rb_MidLane.Checked = true;
                break;

            case laneId_enum.RIGHT_LANE:
                rb_RightLane.Checked = true;
                break;
            }
        }
 public Lane(laneId_enum id_)
 {
     dist = 0;
     id   = id_;
     v    = DEF_LANE_VEL - (double)id_ * DEF_LANE_VEL / 4;
 }
 public Lane()
 {
     dist = 0;
     id   = 0;
     v    = 0;
 }