Distance (Task + Plot)

Learning Goal: I’m working on a computer science project and need support to help me learn.

C.1 Task 1 – Distance (Task + Plot)
Implement a controller called ‘Lab1_Task1.py’. The robot should move in a straight line for “X”
inches at constant velocity. The robot should use the kinematics formulas to move for “X” inches
in “Y” secs and stop based on time, not on readings from position sensors. If the robot cannot
complete the movement in the given amount of time, instead of moving forward, the program
should display an appropriate message. Provide a plot, showing “Distance” vs. “Time”. Distance
should be computed from PositionSensor readings. You can write this data into a file from your
Python console as the simulation runs. During evaluation, the TA will test different values for
“X” and “Y”.

Don't use plagiarized sources. Get Your Custom Essay on
Distance (Task + Plot)
Just from $13/Page
Order Essay
ORDER NOW »»

and taste our undisputed quality.