Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Clarify the update and draw responsibilities in FourWheelsVehicle

Đang mở
#128 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 9 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
66/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
autonomous-driving

Hướng nghiên cứu

Start by reading FourWheelsVehicle and the Phase 2 section of doc/ARCHITECTURE.md, then trace how update() and draw() use the controller and how detector and mapper access sensors. Store the steering angle during update(), read it during draw(), and validate module combinations in the constructor; done when drawing no longer reads control data and invalid combinations produce a clear error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

refactoring

Problem

  • The steering angle used to draw the front tires is taken from the controller inside draw() (_draw_control_data returns it), so drawing depends on control logic.
  • Passing a detector or mapper without sensors raises an error, because they read self.sensors without a check.
  • The order of modules is fixed inside the class.

Expected fix

  • Store the steering angle during update() and only read it in draw()
  • Validate the combination of modules in the constructor with a clear error message

This is a small step toward Phase 2 of doc/ARCHITECTURE.md, where the processing chain moves out of FourWheelsVehicle.

Ngôn ngữ chính
Python
Star
1.9k
Fork
313
Merge trung bình
9 ngày 10 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ShisatoYano/AutonomousVehicleControlBeginnersGuide

Tất cả issue của ShisatoYano/AutonomousVehicleControlBeginnersGuide

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.