Skip to main content

Module examples

Module examples 

Source
Expand description

The example programs, and what each shows.

Each runs with cargo run --example <name> -p hpr from anywhere in the repository. What each prints is committed beside it as <name>.output.txt, and CI checks, on macOS, Windows and Linux, that it still prints exactly that.

ExampleWhat it shows
build_and_flya rocket built part by part, weighed, and flown in a wind under a parachute
motor_choiceone rocket on each 29 mm motor in the catalog, with the best ejection delay
fin_sizingfins of five spans: the margin, the apogee and the drift of each
catalog_rocketa rocket built from a maker’s catalog parts, weighed part by part and flown
custom_dragdrag models of your own in place of hpr’s
custom_winda wind model of your own, which turns with height
ork_two_stagea two-stage OpenRocket file flown through the crates beneath
fin_flutterthe fin flutter speed along a flight
era5_weathera flight in a day’s weather from an ERA5 file