What you learn today
- Launch clearance
- Show flight data
- Return on reserve
Rocket week ends with the on-board computer. It clears the launch, shows the flight data and brings the rocket home when fuel gets short. Everything you built this week comes together in one chip.
The setup
| Device | Prefab | Name |
|---|---|---|
| avionics | StructureRocketAvionics | “Avionik” |
| lever “crew ready” | StructureLogicSwitch | “Crew” |
| launch button | StructureLogicButton | “Start” |
| three LED displays | StructureConsoleLED5 | “Hoehe”, “TWR”, “Sprit” |
| light | StructureWallLight | “Startfrei” |
| flashing light | StructureFlashingLight | “Rueckkehr” |
The rules
- Launch clearance only on the ground and only if everything fits: thrust-to-weight at least 1.3, at least 6000 kg of fuel, crew lever thrown.
- Launch: pressing “Start” with clearance begins the flight. The chip remembers the fuel supply and the home address (
CurrentCode). - Flight data: “Hoehe” shows
Altitude, “TWR” the ratio with two decimals, “Sprit” the supply in percent of the launch – −1 before the launch. - Return: at 55 % or less the chip sets the destination home once, “Rueckkehr” flashes.
- Failure: without avionics no clearance, “Rueckkehr” flashes, all displays −999.
Milestones
- The launch clearance checks all three conditions.
- The flight data are right, “Sprit” only counts from the launch.
- At the reserve the destination is set home exactly once.
- Without avionics everything goes into the safe state.
The phase (0 ground, 1 flight) lives in a register. After a restart of the chip it is 0 again – for this project that is enough. In the big project you put such values into a Logic Memory.
The clearance light must not be lit in flight. Otherwise a press on “Start” in the air would overwrite the remembered supply – and the return would come too late.
Project task
Task
Build the on-board computer according to the rules above.
Milestones
- Milestone 1: launch clearance
- Milestone 2: flight data
- Milestone 3: return at reserve
- Milestone 4: avionics gone
Hints
Hint 1
Clearance: combine three sge/sgtz with and, plus seqz tmp phase – only on the ground.
Hint 2
Launch: button pressed and clearance → phase 1, start = fuel, home = CurrentCode.
Hint 3
Return as with mining: only write when the reserve is reached and back is still 0.
Quiz
2 questions. You pass from 60 % – the server does the grading.
Complete the day
- Passed all milestones of the project
- Passed the quiz with at least 60 %
Without an account progress is saved in this browser only.
Report a mistake in this lesson
Please sign in to report. Sign in