You have been contracted by Toyota Zambia to design a system that can make the Toyota Mark
X a smart vehicle. The company has proposed to install four infrared radars on the car, just
below each light set, to use as sensors. Each sensor has a range of 20m. The company wants the
car to be able to avoid collisions at the rear, and the front, and to be able to auto accelerate to a
recommended spend if the course is clear or when collision is eminent at the rare and the front is
clear, and to be able to overtake a vehicle on the road without causing any accident. The sensors
can pick human body heat at a distance of 15m, and a vehicle body heat at 20m.
a. Using a pseudocode, show the algorithm for the car system, an remember that it
is using four sensors, one at each vehicle corner. With swaying to the right if the
left is not clear and vice versa, till it stops or it continues to correct its paths if the
course is clear.
b. Using C++, write a source code for the car smart system
Comments
Leave a comment