TAILIEUCHUNG - Feedback.Control.for.a.Path.Following.Robotic.Car Part 6

Tham khảo tài liệu ' part 6', kỹ thuật - công nghệ, cơ khí - chế tạo máy phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Patricia Mellodge Chapter 5. Simulation Environment 40 Figure Errors of the path following vehicle. For X1 p mxi yi - r 1 - p x2 -------- ----7---y m 1 2 y2 x2 r 1 p2 For p xi p b2 pb2 4ac x2 -------- ------- 2 2a y2 ự r2 x2 r where the sign of the square root in is the same as the sign of m and a m2 1 b 2m2x1 2my1 2mr c 2mx1y1 2mx1 r y2 2y1r For x1 p2 x2 mx1 y1 r 1 p m1 Patricia Mellodge Chapter 5. Simulation Environment 41 . 2 . x2 r 1 - Ữ2 y2 Now that the points xi yi and x2 y2 are known the error is the difference between them. ef xi - x2 2 yi - y2 2 Either the positive or negative square root is used depending on whether the path is to the left or right of the car s center. The convention used here is if path is to the right the positive value is taken. The error at the rear of the car eb can be found using the above method but LINE 2 in Fig. must go through x0 y0 . Conversion to Sensor Representation On the FLASH car the line beneath the car is detected using an array of sensors. The sensors are turned on or off depending on whether the line is detected. The result is a binary representation of the line s location such as 1110011111111111 where the zeros indicate the location of the line. The error distance calculated in the previous section must be converted to this binary representation. This is done as follows. array ones s 1 for k s s-1 if d k sp d k 1 sp array s 2-k 0 end end Here s is the number of sensors d is the error distance as calculated in the previous section and sp is the spacing between the sensors. If the line is outside the width of the sensors the array is all ones. Conversion to Distance The binary representation must now be converted back into an actual distance for use by the controller. The following code performs the conversion. Patricia Mellodge Chapter 5. Simulation Environment 42 error 0 num 0 val s 1 2 for k 1 s if array k 0 num num 1 error error val-k sp end end if num 0 error .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.