STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1"""Robust Differential Dynamic Programming (DDP) controller for thrust regulation.
2
3This module implements a robust DDP-based controller that regulates engine thrust
4via pressure regulation while maintaining mixture ratio constraints and handling
5disturbances.
6"""
7
8from .data_models import (
9 Measurement,
10 NavState,
11 Command,
12 CommandType,
13 ControllerConfig,
14 ControllerState,
15)
16from .config_loader import load_config, save_config, get_default_config
17from .dynamics import step, linearize, DynamicsParams, N_STATE, N_CONTROL
18from .engine_wrapper import EngineWrapper, EngineEstimate, estimate_from_pressures
19from .constraints import is_safe, constraint_values, get_constraint_summary
20from .robustness import (
21 update_bounds,
22 tube_propagate,
23 get_w_bar_array,
24 set_w_bar_array,
25)
26from .ddp_solver import solve_ddp, DDPSolution
27from .reference import build_reference, Reference
28from .actuation import (
29 compute_actuation,
30 ActuationCommand,
31 ExecutionBackend,
32 quantize_duty,
33 enforce_dwell,
34 binary_actuation,
35 update_state_dwell_timers,
36 create_duty_grid,
37)
38from .safety_filter import filter_action
39from .controller import RobustDDPController
40from .logging import ControllerLogger
41from .identify import ParameterIdentifier, update_params
42from .policy_lut import PolicyLUT
43
44__all__ = [
45 "Measurement",
46 "NavState",
47 "Command",
48 "CommandType",
49 "ControllerConfig",
50 "ControllerState",
51 "load_config",
52 "save_config",
53 "get_default_config",
54 "step",
55 "linearize",
56 "DynamicsParams",
57 "N_STATE",
58 "N_CONTROL",
59 "EngineWrapper",
60 "EngineEstimate",
61 "estimate_from_pressures",
62 "is_safe",
63 "constraint_values",
64 "get_constraint_summary",
65 "update_bounds",
66 "tube_propagate",
67 "get_w_bar_array",
68 "set_w_bar_array",
69 "solve_ddp",
70 "DDPSolution",
71 "build_reference",
72 "Reference",
73 "compute_actuation",
74 "ActuationCommand",
75 "ExecutionBackend",
76 "quantize_duty",
77 "enforce_dwell",
78 "binary_actuation",
79 "update_state_dwell_timers",
80 "create_duty_grid",
81 "filter_action",
82 "RobustDDPController",
83 "ControllerLogger",
84 "ParameterIdentifier",
85 "update_params",
86 "PolicyLUT",
87]
88