ME 106
Homework 1
Angmering Raceway Car Jumping Simulation with Graphical User Interface (GUI)
Angmering Raceway is a motor racing circuit on the outskirts of Angmering, West Sussex in the
United Kingdom. Here is the Angmering Raceway website. Angmering Raceway – Oval Raceway at
Angmering, West Sussex
One of the Angmering Raceway Car Jumping Competitions is in the following YouTube Video.
The objective of the car jump competition is to drive over a 7 m long (horizontally) and 1.5 m high
(vertically) jump ramp and jump over 9 cars parked tightly side-by-side, approximately 1.8 m x 9 =
16.2 m long distance.
Car jumps utilize the slop of the ramp and fast speed to create a catapult effect that launch the car
into the air at an angle like a catapult. Since the slop of the ramp is fixed, the distance of the jump
will be determined by the velocity of the car when it jumps off the ramp.
Car repairs can be time consuming and expensive. Write a MATLAB App Designer app using
Graphical User Interface (GUI) to help the race driver to visualize the jump and simulate the result.
Add an Axes to show a picture of the race car in GUI when the app starts [2 pt]
.
Add another Axes in GUI to plot the jump ramp and parked cars in GUI when the app starts [2 pt]
.
1. The jump ramp is 7 meters long (measured horizontally) and 1.5 meters tall (measured
vertically). Create a new variable to store the jump ramp x-direction coordinates, 0 and 7
[1pt]. Create another new variable to store the jump ramp y-direction coordinates, 0 and 1.5
[1pt]
.
2. The tightly parked cars (for the race drivers to jump over) are 16.2 meters long and 1.5
meters high. Create a new variable to store the parked cars x-direction coordinates, 7, 7,
(7+16.2), and (7+16.2) [1 pt]. Create another variable to store the parked cars y-direction
coordinates, 0, 1.5, 1.5, and 0 [1 pt]
.
3. Plot the jump ramp [2 pt] and the tightly parked cars [2 pt]
.
4. Set XLim to [0 35] [1 pt]. Set YLim to [0 25] [1 pt]
.
5. Add plot title [2 pt]
, x-axis label [1 pt]
, y-axis label [1 pt], and legend [2 pt]to the plot.
Add a Label in GUI to show the race driver the current car speed in MPH [2 pt]
. The label should show
0 MPH when the app starts [2 pt]
.
Add a speedometer Gauge in GUI to show the race car in MPH [2 pt]
. The gauge should point to 0
MPH when the app starts [2 pt]
.
Add a start Button in GUI [2 pt] for the race driver to click to start the simulation and to start speeding
up the car. When this start Button is clicked, the app should:
1. Modify the picture of the race car to show another picture [2 pt]
.
2. Increment the text shown in the car speed label by 1 MPH every 0.2 seconds (200
milliseconds) [2 pt]
.
3. Increment the gauge value by 1 MPH every 0.2 seconds (200 milliseconds) [2 pt]
.
Add a Jump Button in GUI [2 pt] for the race drive to click when the car reaches the desired jump
speed. When this Jump Button is clicked, the app should:
1. Stop the car speed increment of the text shown in the car speed Label [2 pt]
.
2. Stop the increment of the Gauge value [2 pt]
.
3. Take the current car speed value in MPH from the Gauge and use the value for the simulation
computation [2 pt]
.
4. Convert the car speed from miles per hour (mph) to meters per second (m/s) [2 pt]
.
5. Compute the jump ramp incline angle [2 pt]
.
6. Compute the initial velocity of the car in the x [2 pt] and y [2 pt] directions (vx0 and vy0).
7. Compute the time it takes for the car to reach the maximum height (vy = 0) using vy = vy0 + ay t
[2 pt]
.
8. Compute the maximum height [2 pt] using y = y0 + vy0t + ½ ay t
2
.
9. Compute the time it takes for the car to free-fall (with zero initial velocity) from the
maximum height to the ground [2 pt]
, using y = y0 + vy0t + ½ ay t
2
.
10. Compute the total flight time of the projectile [2 pt], the time it takes for the car to reach the
maximum height plus the time it takes for the car to free-fall from the maximum height to the
ground.
11. Use the MATLAB linspace function to generate a large array of time that starts at 0 and ends
at the total fly time with 100 equally spaced time points [2 pt]
.
12. Compute a large array of x
[2 pt] and another large array of y
[2 pt] values by applying elementby-element computation to the large array of time.
13. The jump ramp is 7 meters long (measured horizontally) and 1.5 meters tall (measured
vertically). Create a new variable to store the jump ramp x-direction coordinates, 0 and 7
[1pt]. Create another new variable to store the jump ramp y-direction coordinates, 0 and 1.5
[1pt]
.
14. The tightly parked cars (for the race drivers to jump over) are 16.2 meters long and 1.5
meters high. Create a new variable to store the parked cars x-direction coordinates, 7, 7,
(7+16.2), and (7+16.2) [1 pt]. Create another variable to store the parked cars y-direction
coordinates, 0, 1.5, 1.5, and 0 [1 pt]
.
15. Use element-by-element addition to add the length of the jump ramp (7 m) to every value in
the large array of x projectile motion coordinates [2 pt]
.
16. Now we are ready to prepare the coordinates for the top of the race car. The race car is 1.5
meters tall. The x-direction coordinates for the top of the race car can be obtained from
combining the jump ramp x-direction coordinates and the new x-direction projectile
coordinates together into a new array [2 pt]
. The y-direction coordinates for the top of the
race car can be obtained from combining the jump ramp y-direction coordinates + 1.5 and
the y-direction projectile coordinates + 1.5 together into a new array [2 pt]
.
17. Plot the jump ramp [2 pt]
, the tightly parked cars [2 pt]
, the bottom of the race car projectile
motion [2 pt] and the top of the race car projectile motion [2 pt] in the same figure.
18. Set XLim to [0 35] [1 pt]. Set YLim to [0 25] [1 pt]
.
19. Add plot title [2 pt]
, x-axis label [1 pt]
, y-axis label [1 pt], and legend [2 pt] to the plot.
20. Multiply the time it takes for the car to reach the maximum height by 2 to obtain the time
the race car flies above 1.5 m [2 pt]
.
21. Compute the horizontal distance the race car flies above 1.5 m using x = x0 + vx0t + ½ ax t
2
.
Recall that ax = 0 [2 pt]
.
22. If the horizontal distance the race car flies above 1.5 m value is greater than 16.2 [2 pt]:
a. Modify the picture of the race car to show a successful picture [2 pt]
.
23. Else:
a. Modify the picture of the race car to show a crash picture [2 pt]
.
24. End.
Additional components are always welcome!
(Here is an example display when the program starts.)
(Here is an example display after clicking the START+SPEED button. Note that the speed goes up
automatically.)
(Here is an example display showing the speed automatically goes up.)
(Here is an example clicking the JUMP button at 56 MPH.)
(Another example for clicking the JUMP button at 39 MPH.)
Ensure your hw1 folder contains all files.
Include all the pictures used in hw1 GUI in the same folder.
Zip the entire hw1 folder.
Rename the hw1.zip to LastName_FirstName_ME106_hw1.zip
Submit the .zip file to Moodle.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
Paper Helper has assembled a team of highly skilled writers with diverse experience in the online writing circles. Our aim is to become a one stop shop for all your Academic/ online writing. Check out below our amazing service!
Essays
At Paper Helper, we prioritize on all aspects that creates a good grade such as impeccable grammar, proper structure, zero-plagiarism, and conformance to guidelines. The principal purpose of essay writing is to present the author's evaluation concerning a singular subject about which they have made. Since Professionalism is the mother of every success, try our team of experienced writers in helping you complete your essays and other assignments.
Admissions
Admission Papers
You have been trying to join that prestigious institution you long yearned for, but the hurdle of an admission essay has become a stumbling block. We have your back, with our proven team that has gained invaluable experience over time, your chance of joining that institution is now! Just let us work on that essay.How do you write an admission essay? How do you begin the essay? For answers, try Quality Custom Writers Now!
Editing
Editing and Proofreading
Regardless of whether you're pleased with your composing abilities, it's never an impractical notion to have a second eye go through your work. The best editing services leaves no mistake untouched. We recognize the stuff needed to polish up a writing; as a component of our editing and proofreading, we'll change and refine your write up to guarantee it's amazing, and blunder free. Our group of expert editors will examine your work, giving an impeccable touch of English while ensuring your punctuation and sentence structures are top-notch.
Coursework
Technical papers
We pride ourselves in having a team of clinical writers. The stringent and rigorous vetting process ensures that only the best persons for job. We hire qualified PhD and MA writers only. We equally offer our team of writers bonuses and incentives to motivate their working spirit in terms of delivering original, unique, and informative content. They are our resources drawn from diverse fields. Therefore your technical paper is in the right hands. Every paper is assessed and only the writers with the technical know-how in that field get to work on it.
Coursework
College Essay Writing
If all along you have been looking for a trustworthy college essay service provider that provides superb academic papers at reasonable prices, then be glad that you search has ended with us. We are your best choice! Get high-quality college essay writing from our magnificent team of knowledgeable and dedicated writers right now!
Coursework
Quality Assignment/Homework Help
We give the students premium quality assignments, without alarming them with plagiarism and referencing issues. We ensure that the assignments stick to the rules given by the tutors. We are specific about the deadlines you give us. We assure you that you will get your papers well in advance, knowing that you will review and return it if there are any changes, which should be incorporated.