STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
engine.control.robust_ddp.data_models.ControllerState Class Reference

Public Member Functions

None reset (self)
Dict[str, Any] to_dict (self)
ControllerState from_dict (cls, Dict[str, Any] data)

Static Public Attributes

Dict u_prev = field(default_factory=lambda: {"P_u_fuel": 0.0, "P_u_ox": 0.0})
Dict dwell_timers = field(default_factory=lambda: {"P_u_fuel": 0.0, "P_u_ox": 0.0})
Optional last_trajectory = None
Dict w_bar = field(default_factory=lambda: {"thrust": 0.0, "MR": 0.0})
Optional w_bar_array = None
float beta = 0.0
int iteration_count = 0
float last_cost = float('inf')

Detailed Description

Persistent controller state.

Maintains state across control ticks for robust DDP controller.

Definition at line 381 of file data_models.py.

Member Function Documentation

◆ from_dict()

ControllerState engine.control.robust_ddp.data_models.ControllerState.from_dict ( cls,
Dict[str, Any] data )
Create from dictionary.

Definition at line 434 of file data_models.py.

◆ reset()

None engine.control.robust_ddp.data_models.ControllerState.reset ( self)
Reset controller state to initial values.

Definition at line 407 of file data_models.py.

References beta, dwell_timers, iteration_count, last_cost, last_trajectory, u_prev, w_bar, fsw::control::RobustDDPController::ControllerState.w_bar, and w_bar_array.

◆ to_dict()

Dict[str, Any] engine.control.robust_ddp.data_models.ControllerState.to_dict ( self)
Convert to dictionary for serialization.

Definition at line 418 of file data_models.py.

References beta, dwell_timers, iteration_count, last_cost, last_trajectory, u_prev, w_bar, fsw::control::RobustDDPController::ControllerState.w_bar, and w_bar_array.

Member Data Documentation

◆ beta

float engine.control.robust_ddp.data_models.ControllerState.beta = 0.0
static

Definition at line 401 of file data_models.py.

Referenced by reset(), and to_dict().

◆ dwell_timers

Dict engine.control.robust_ddp.data_models.ControllerState.dwell_timers = field(default_factory=lambda: {"P_u_fuel": 0.0, "P_u_ox": 0.0})
static

Definition at line 390 of file data_models.py.

Referenced by reset(), and to_dict().

◆ iteration_count

int engine.control.robust_ddp.data_models.ControllerState.iteration_count = 0
static

Definition at line 404 of file data_models.py.

Referenced by reset(), and to_dict().

◆ last_cost

float engine.control.robust_ddp.data_models.ControllerState.last_cost = float('inf')
static

Definition at line 405 of file data_models.py.

Referenced by reset(), and to_dict().

◆ last_trajectory

Optional engine.control.robust_ddp.data_models.ControllerState.last_trajectory = None
static

Definition at line 393 of file data_models.py.

Referenced by reset(), and to_dict().

◆ u_prev

◆ w_bar

Dict engine.control.robust_ddp.data_models.ControllerState.w_bar = field(default_factory=lambda: {"thrust": 0.0, "MR": 0.0})
static

Definition at line 397 of file data_models.py.

Referenced by reset(), and to_dict().

◆ w_bar_array

Optional engine.control.robust_ddp.data_models.ControllerState.w_bar_array = None
static

Definition at line 398 of file data_models.py.

Referenced by reset(), and to_dict().


The documentation for this class was generated from the following file: