Attempt to dock the rocket to the green patch(Space Station). To do it safely, the spaceship must be stopped at the station. Once you have figured out a code, take a screenshot and upload it below.
During this lesson, you will driving a spaceship, through space, and attempting to dock it safely. The rocket engines fire an impulse in order to accelerate. How do spaceships navigate?
CT-STEM, Northwestern University.
This lesson was coded by Jacob Kelter.
In this lesson you will program a spaceship to reach its destination by scheduling when the engines produce an impulse. Remember, Impulse = F*t!
Attempt to dock the rocket to the green patch(Space Station). To do it safely, the spaceship must be stopped at the station. Once you have figured out a code, take a screenshot and upload it below.
| File | Delete |
|---|---|
Explain the process you went through to find your solution to question 1. What did you do try first? What did you notice? What did you then have to change? etc. Try to explain all the steps you took and how you figured out what to do next.
When the left engine is turned on, which direction is the rocket accelerated in? Why is this?
After an engine has been fired and no engines are on anymore, what does the rocket do motion-wise? Why is this? In your response make sure to note which of Newton's laws explains the motion.
Sketch the graph of the force of the left engine vs. time from your solution to question 1.
Sketch the graph of the force in the x direction (regardless of which engine caused it) vs. time from your solution to question 1.
What is the sum of the area under the curve for your sketch in the previous section? Is the spaceship displaced as a result of these impulses?
What is the sum of the impulses from your solution to question 1? Will this be true for any solution? Explain.
Considering a real rocket: why does burning fuel and allowing the resulting hot gas to only shoot out in one direction propel the rocket?
In our model, the mass of the rocket is constant, but a real rocket loses mass due to burning fuel and ejecting the resulting hot gas. How would this affect the motion and how could we make our model more realistic to take this into account?
Your job now is to negotiate Maze 1 and 2. Remember, you must dock the spaceship safely.
Upload a screenshot of your successful blocks for Maze 1.
| File | Delete |
|---|---|
Explain the process you went through to find your solution to the previous question. What did you try first? What did you notice? What did you then have to change? etc. Try to explain your thinking.
How would you get the ship to accelerate up and to the right? Draw the 2 force vectors on the ship. Also, draw the resultant force on the ship.
Upload a screenshot of your successful code of Maze 2.
| File | Delete |
|---|---|
Again, explain the process you went through to find your solution to the previous question. Explain your thinking.
Now switch the maze to "none horizontal." Play around and try to get to the station as fast as possible (in terms of ticks). How did you do this? How many ticks did it take?
|
Keep the maze on "none horizontal." Now try to get to the station as slowly as possible (in terms of ticks). How did you do this? How many ticks did it take?
|
Sketch two force vs time graphs. One for the minimum time travel and one for the maximum time travel from the last two questions. Label the ticks on the x-axis for the middle and end of each graph.
Write out the impulse equation for the left engine firing for a time, t. Write out the impulse equation for the right engine firing for a time, t. Remember the direction matters in the equation!
Assume the rocket is 5kg and is moving at 4m/s to the right. The left engine is now fired which applies a 1N force and is kept on for 15 seconds. What will the final velocity be?
Assume the rocket is 5kg and is moving at 4m/s to the right. This time, the right engine is fired which applies a 1N force and is kept on for 15 seconds. What will the final velocity be?
Now things get trickier. Each time you click "setup target," the green target will be in a new place. That means you can't use trial and error to figure out the engine schedule that will get you there. Instead you need to figure out a way to calculate it. You can use the "ruler" button to measure how far the ship is from the target. In this version, you can also adjust how strongly the engines fire, not just how long they fire for.
Start with the "target-mode" option set to "random target 1D." In this mode, the target will always be at the same y-coordinate as the space ship, but will be a random distance away in the x-direction each time you click "setup target". Your job is to figure out a way to calculate what the engine schedule should be to reach the target. There are multiple ways to do this.
In the box below, describe your method each time you try, even if it doesn't work yet. It will probably take you at least a few tries to perfect your method so that you can consistently land on the target. So, each time you try, describe your method and what happened. Then describe how you are changing your method. Repeat this until you have a method that consistently works.
After the engine stops firing, what happens to the velocity? To the momentum?
Take the initial velocity as zero and the mass as 8 kg. If the left rocket applied 10N of force for 8 seconds, what would the final velocity be? What would the momentum be? How far would it travel in those 8 seconds?
Sketch an exact graph of the velocity vs. time for the scenario in question 3.
What does the area under the graph equal?
If the mass in question 3, was 4 kg, what would the final velocity be after the 8 seconds? What is the momentum after the 8 seconds?
Sketch an exact graph of the force vs. time for the scenario in question 3.
What does the area under the graph equal?
Now set the "target-mode" to "random target 2D." In this mode, the target will be at a random distance from the rocket in both directions each time you click "setup target". Once again, your job is to figure out a way to calculate what the engine schedule should be to reach the target.
Again, in the box below, describe your method each time you try, even if it doesn't work yet. It will probably take you at least a few tries to perfect your method so that you can consistently land on the target. So, each time you try, describe your method and what happened. Then describe how you are changing your method. Repeat this until you have a method that consistently works.
If you've gotten to this point, it's time to celebrate by drawing something cool with the rocket! Play around with setting the engine schedule to get the rocket to draw a shape or a design. When you have something you like, take a screen shot of your blocks and upload them here.
| File | Delete |
|---|---|