COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
sutraWrap.ControllerCURED_FU Class Reference
Inheritance diagram for sutraWrap.ControllerCURED_FU:
Collaboration diagram for sutraWrap.ControllerCURED_FU:

Public Member Functions

int init_cured (self, int nxsub, numpy.ndarray[numpy.int32] isvalid, int ndivs, int tt)
 Initialize CURED. More...
 
- Public Member Functions inherited from sutraWrap.Controller_FU
int add_perturb (self)
 Add the perturbation voltage to the command. More...
 
int add_perturb_voltage (self, str name, numpy.ndarray[numpy.float32] perturb, int N)
 Add a new perturbation voltage buffer. More...
 
int clip_commands (self)
 Clip the commands between volt_min and volt_max (values set in the controller) More...
 
int command_delay (self)
 Delay the command. More...
 
int comp_voltage (self)
 Computes the final voltage to send to the DM. More...
 
int disable_perturb_voltage (self, str name)
 Disable a perturbation voltage buffer. More...
 
int enable_perturb_voltage (self, str name)
 Enable a perturbation voltage buffer. More...
 
int remove_perturb_voltage (self, str name)
 Remove a perturbation voltage buffer. More...
 
int reset_coms (self)
 Reset the commands circular buffer. More...
 
int reset_perturb_voltage (self)
 Remove all perturbation voltage buffers. More...
 
int set_com (self, numpy.ndarray[numpy.float32] com, int nElem)
 Set the command vector of the controller. More...
 
None set_comRange (self, float volt_min, float volt_max)
 Set the volt_min and volt_max value for command clipping. More...
 
int set_delay (self, float delay)
 Set the delay. More...
 
int set_gain (self, float gain)
 Set the gain. More...
 
int set_open_loop (self, int status, bool rst=True)
 Open (1) or close (0) the loop. More...
 
int set_perturb_voltage (self, str name, numpy.ndarray[numpy.float32] perturb, int N)
 Set an existing perturbation voltage buffer. More...
 
int set_val_max (self, float val_max)
 Set the val_max value for command conversion. More...
 
int set_volt_max (self, float volt_max)
 Set the volt_max value for command clipping. More...
 

Properties

 d_cenbuff = property
 Centroids circular buffer. More...
 
 d_err = property
 Increment error. More...
 
 d_imat = property
 Interaction matrix. More...
 
 h_centroids = property
 Centroids. More...
 
 h_err = property
 Increment error. More...
 
 ndivs = property
 Number of subdivision levels. More...
 
 tt_flag = property
 Flag to separate TT. More...
 
- Properties inherited from sutraWrap.Controller_FU
 centro_idx = property
 Indices of the handled centroiders. More...
 
 comRange = property
 
type of : typing.Tuple[float, float] More...
 
 context = property
 GPU context. More...
 
 d_centroids = property
 Slopes vector. More...
 
 d_circularComs0 = property
 Oldest command vector in the circular buffer. More...
 
 d_circularComs1 = property
 Second oldest Command vector in the circular buffer. More...
 
 d_com = property
 Current command vector. More...
 
 d_com1 = property
 Command vector at iteration k-1. More...
 
 d_com_clipped = property
 Delayed commands. More...
 
 d_dmseen = property
 Vector of SutraDm commanded. More...
 
 d_perturb_map = property
 Perturbation voltage buffers. More...
 
 d_voltage = property
 Total voltage to apply on the DMs. More...
 
 delay = property
 Loop delay. More...
 
 device = property
 GPU device index. More...
 
 gain = property
 Controller gain. More...
 
 nactu = property
 Number of actuators to control. More...
 
 nslope = property
 Number of slopes. More...
 
 open_loop = property
 Open loop flag. More...
 
 type = property
 Controller type. More...
 
 val_max = property
 Maximum value for d_voltage (ADU). More...
 

Detailed Description

Definition at line 4450 of file sutraWrap.py.

Member Function Documentation

◆ init_cured()

int sutraWrap.ControllerCURED_FU.init_cured (   self,
int  nxsub,
numpy.ndarray[numpy.int32]  isvalid,
int  ndivs,
int  tt 
)

Initialize CURED.

Parameters
nxsub(int): TODO: docstring
       isvalid:
ndivs(int):
tt(int):

Definition at line 4463 of file sutraWrap.py.

Property Documentation

◆ d_cenbuff

sutraWrap.ControllerCURED_FU.d_cenbuff = property
static

Centroids circular buffer.

   @n type of :  carmaWrap.obj_float

Definition at line 4470 of file sutraWrap.py.

◆ d_err

sutraWrap.ControllerCURED_FU.d_err = property
static

Increment error.

   @n type of :  carmaWrap.obj_float

Definition at line 4479 of file sutraWrap.py.

◆ d_imat

sutraWrap.ControllerCURED_FU.d_imat = property
static

Interaction matrix.

   @n type of :  carmaWrap.obj_float

Definition at line 4488 of file sutraWrap.py.

◆ h_centroids

sutraWrap.ControllerCURED_FU.h_centroids = property
static

Centroids.

   @n type of :  carmaWrap.host_obj_float

Definition at line 4497 of file sutraWrap.py.

◆ h_err

sutraWrap.ControllerCURED_FU.h_err = property
static

Increment error.

   @n type of :  carmaWrap.host_obj_float

Definition at line 4506 of file sutraWrap.py.

◆ ndivs

sutraWrap.ControllerCURED_FU.ndivs = property
static

Number of subdivision levels.

   @n type of :  int

Definition at line 4515 of file sutraWrap.py.

◆ tt_flag

sutraWrap.ControllerCURED_FU.tt_flag = property
static

Flag to separate TT.

   @n type of :  bool

Definition at line 4524 of file sutraWrap.py.


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