rocketpal.utilities.airbrake_controllers module¶
- class rocketpal.utilities.airbrake_controllers.State(data, offset=0)[source]¶
Bases:
object- Parameters:
data (list)
offset (int)
- e0: float¶
- e1: float¶
- e2: float¶
- e3: float¶
- v_x: float¶
- v_y: float¶
- v_z: float¶
- w_x: float¶
- w_y: float¶
- w_z: float¶
- x: float¶
- y: float¶
- z: float¶
- rocketpal.utilities.airbrake_controllers.calculate_mach_level(env, state)[source]¶
- Parameters:
env (Environment)
state (State)
- Return type:
float
- rocketpal.utilities.airbrake_controllers.disabled_controller(env, rocket, time, sampling_rate, state_raw, state_history_raw, observed_variables, air_brakes)[source]¶
- Parameters:
env (Environment)
rocket (Rocket)
time (float)
sampling_rate (float)
state_raw (list)
state_history_raw (list)
observed_variables (list)
air_brakes (AirBrakes)
- Return type:
tuple[float, float, float]
- rocketpal.utilities.airbrake_controllers.enabled_controller(env, rocket, time, sampling_rate, state_raw, state_history_raw, observed_variables, air_brakes)[source]¶
- Parameters:
env (Environment)
rocket (Rocket)
time (float)
sampling_rate (float)
state_raw (list)
state_history_raw (list)
observed_variables (list)
air_brakes (AirBrakes)
- Return type:
tuple[float, float, float]
- rocketpal.utilities.airbrake_controllers.estimate_apogee_via_propagation(env, airbrake, rocket, state_now, time_step_seconds=0.1)[source]¶
- Parameters:
env (Environment)
airbrake (AirBrakes)
rocket (Rocket)
state_now (State)
time_step_seconds (float)
- Return type:
float
- rocketpal.utilities.airbrake_controllers.smooth_deployment_change(current_deployment, target_deployment, seconds_per_full_movement, delta_t_in_seconds)[source]¶
- Parameters:
current_deployment (float)
target_deployment (float)
seconds_per_full_movement (float)
delta_t_in_seconds (float)
- Return type:
float
- rocketpal.utilities.airbrake_controllers.stargaze_airbrake_controller(env, rocket, time, sampling_rate, state_raw, state_history_raw, observed_variables, air_brakes)[source]¶
- Parameters:
env (Environment)
rocket (Rocket)
time (float)
sampling_rate (float)
state_raw (list)
state_history_raw (list)
observed_variables (list)
air_brakes (AirBrakes)
- Return type:
tuple[float, float, float]
- rocketpal.utilities.airbrake_controllers.stupid_full_extension_controller(env, rocket, time, sampling_rate, state_raw, state_history_raw, observed_variables, air_brakes)[source]¶
- Parameters:
env (Environment)
rocket (Rocket)
time (float)
sampling_rate (float)
state_raw (list)
state_history_raw (list)
observed_variables (list)
air_brakes (AirBrakes)
- Return type:
tuple[float, float, float]