STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_flight_router Namespace Reference

Functions

 _request (cfg, **over)
 _simulate (cfg, request)
 test_a_ceiling_needs_a_datum ()
 test_msl_ceiling_is_converted_at_the_pad ()
 test_no_ceiling_no_check ()
 test_ceiling_is_checked_at_the_high_apogee_corner ()
 test_ceiling_violation_is_flagged_not_hidden ()
 test_optimize_refuses_a_target_above_the_ceiling ()
 test_request_masses_reach_the_flight_config ()
 test_engine_mass_edit_changes_the_apogee ()
 test_reference_pressure_is_the_session_pad_not_the_tabs ()

Variables

 reason

Detailed Description

The Flight tab's router: the apogee ceiling (FLT-5), the masses it forwards (FLT-6), and the
thrust curve's reference pressure (FLT-10).

FLT-5: the only altitude requirement was a lower target; a 15,000 ft MSL waiver appeared only in
a config comment, with no datum. FLT-6: engine and tank-structure masses edited on the Flight
tab were written only into propulsion_dry_mass, which the flight never reads once engine_mass is
set, so every such edit flew the config's masses. FLT-10: the time series runs at the SESSION
config's pad, so the thrust curve's reference is that elevation, not one the tab overrides.

Function Documentation

◆ _request()

◆ _simulate()

◆ test_a_ceiling_needs_a_datum()

test_flight_router.test_a_ceiling_needs_a_datum ( )

Definition at line 47 of file test_flight_router.py.

◆ test_ceiling_is_checked_at_the_high_apogee_corner()

test_flight_router.test_ceiling_is_checked_at_the_high_apogee_corner ( )

Definition at line 70 of file test_flight_router.py.

References _request(), and _simulate().

◆ test_ceiling_violation_is_flagged_not_hidden()

test_flight_router.test_ceiling_violation_is_flagged_not_hidden ( )

Definition at line 86 of file test_flight_router.py.

References _request(), and _simulate().

◆ test_engine_mass_edit_changes_the_apogee()

test_flight_router.test_engine_mass_edit_changes_the_apogee ( )
+10 kg of engine: the 1-DOF (engine/pipeline/flight_1dof, checked against Sutton) predicts
the loss with the same drag; the flight must move by about as much, not by zero.

Definition at line 128 of file test_flight_router.py.

References _request(), and _simulate().

◆ test_msl_ceiling_is_converted_at_the_pad()

test_flight_router.test_msl_ceiling_is_converted_at_the_pad ( )

Definition at line 56 of file test_flight_router.py.

◆ test_no_ceiling_no_check()

test_flight_router.test_no_ceiling_no_check ( )

Definition at line 64 of file test_flight_router.py.

References _request(), and _simulate().

◆ test_optimize_refuses_a_target_above_the_ceiling()

test_flight_router.test_optimize_refuses_a_target_above_the_ceiling ( )

Definition at line 95 of file test_flight_router.py.

◆ test_reference_pressure_is_the_session_pad_not_the_tabs()

test_flight_router.test_reference_pressure_is_the_session_pad_not_the_tabs ( )

Definition at line 155 of file test_flight_router.py.

References _request(), and _simulate().

◆ test_request_masses_reach_the_flight_config()

test_flight_router.test_request_masses_reach_the_flight_config ( )

Definition at line 113 of file test_flight_router.py.

References _request().

Variable Documentation

◆ reason

test_flight_router.reason

Definition at line 22 of file test_flight_router.py.