COMPASS  5.0.0
End-to-end AO simulation tool using GPU acceleration
SutraControllerCured< Tcomp, Tout > Class Template Reference

this class provides the controller_cured features to COMPASS More...

#include <sutra_controller_cured.h>

Inheritance diagram for SutraControllerCured< Tcomp, Tout >:
Collaboration diagram for SutraControllerCured< Tcomp, Tout >:

Public Member Functions

 SutraControllerCured (CarmaContext *context, long nvalid, long nslope, long nactu, float delay, SutraDms *dms, int *idx_dms, int ndm, int *idx_centro, int ncentro)
 
 SutraControllerCured (const SutraControllerCured &controller)
 
 ~SutraControllerCured ()
 
string get_type ()
 
int comp_com ()
 !!! YOU MUST set d_centroids before calling it!!!! More...
 
int init_cured (int nxsubs, int *isvalid, int ndivs, int tt)
 
int frame_delay ()
 
- Public Member Functions inherited from SutraController< Tcomp, Tout >
 SutraController (CarmaContext *context, int nvalid, int nslope, int nactu, float delay, SutraDms *dms, int *idx_dms, int ndm, int *idx_centro, int ncentro)
 
virtual ~SutraController ()
 
int nactu ()
 
int nslope ()
 
cublasHandle_t cublas_handle ()
 
void init_voltage ()
 
int set_centroids_ref (Tcomp *centroids_ref)
 
int add_perturb_voltage (string name, float *perturb, int N)
 
int set_perturb_voltage (string name, float *perturb, int N)
 
int remove_perturb_voltage (string name)
 
int reset_perturb_voltage ()
 
int enable_perturb_voltage (string name)
 
int disable_perturb_voltage (string name)
 
int set_com (float *com, int nElem)
 
int set_open_loop (int open_loop_status, bool rst=true)
 
int clip_commands ()
 
int comp_voltage ()
 
int comp_latency ()
 
int set_delay (float delay)
 
int set_volt_min (float volt_min)
 
int set_volt_max (float volt_max)
 
int set_val_max (float val_max)
 
int set_gain (float gain)
 
int reset_coms ()
 
int command_delay ()
 
int add_perturb ()
 

Public Attributes

int ndivs
 
bool tt_flag
 
CarmaHostObj< Tcomp > * h_centroids
 
CarmaHostObj< Tcomp > * h_err
 
CarmaObj< Tcomp > * d_err
 
CarmaObj< Tcomp > * d_cenbuff
 
CarmaObj< Tcomp > * d_imat
 
void * h_syscure
 
void * h_parcure
 
- Public Attributes inherited from SutraController< Tcomp, Tout >
CarmaContextcurrent_context
 
int device
 
int open_loop
 
Tcomp delay
 
Tcomp gain
 
float volt_min
 
float volt_max
 
int nactus
 
int nslopes
 
Tout val_max
 
Tcomp a
 
Tcomp b
 
Tcomp c
 
vector< SutraDm * > d_dmseen
 
CarmaObj< Tcomp > * d_centroids
 
CarmaObj< Tcomp > * d_centroids_padded
 
CarmaObj< Tcomp > * d_com
 
CarmaObj< Tcomp > * d_com_padded
 
CarmaObj< Tcomp > * d_com_clipped
 
CarmaObj< Tout > * d_voltage
 
CarmaObj< Tcomp > * d_com1
 
vector< int > centro_idx
 
std::deque< CarmaObj< Tcomp > * > d_circular_coms
 
map< string, tuple< CarmaObj< Tcomp > *, int, bool > > d_perturb_map
 
CarmaStreamsstreams
 

Additional Inherited Members

- Protected Attributes inherited from SutraController< Tcomp, Tout >
mutex comp_voltage_mutex
 

Detailed Description

template<typename Tcomp, typename Tout>
class SutraControllerCured< Tcomp, Tout >

this class provides the controller_cured features to COMPASS

Author
COMPASS Team https://github.com/ANR-COMPASS
Version
5.0.0
Date
2011/01/28

Definition at line 48 of file sutra_controller_cured.h.

Constructor & Destructor Documentation

◆ SutraControllerCured() [1/2]

template<typename Tcomp , typename Tout >
SutraControllerCured< Tcomp, Tout >::SutraControllerCured ( CarmaContext context,
long  nvalid,
long  nslope,
long  nactu,
float  delay,
SutraDms dms,
int *  idx_dms,
int  ndm,
int *  idx_centro,
int  ncentro 
)

◆ SutraControllerCured() [2/2]

template<typename Tcomp , typename Tout >
SutraControllerCured< Tcomp, Tout >::SutraControllerCured ( const SutraControllerCured< Tcomp, Tout > &  controller)

◆ ~SutraControllerCured()

template<typename Tcomp , typename Tout >
SutraControllerCured< Tcomp, Tout >::~SutraControllerCured ( )

Member Function Documentation

◆ comp_com()

template<typename Tcomp , typename Tout >
int SutraControllerCured< Tcomp, Tout >::comp_com ( )
virtual

!!! YOU MUST set d_centroids before calling it!!!!

Implements SutraController< Tcomp, Tout >.

◆ frame_delay()

template<typename Tcomp , typename Tout >
int SutraControllerCured< Tcomp, Tout >::frame_delay ( )

◆ get_type()

template<typename Tcomp , typename Tout >
string SutraControllerCured< Tcomp, Tout >::get_type ( )
virtual

Implements SutraController< Tcomp, Tout >.

Definition at line 75 of file sutra_controller_cured.h.

75 { return "cured"; }

◆ init_cured()

template<typename Tcomp , typename Tout >
int SutraControllerCured< Tcomp, Tout >::init_cured ( int  nxsubs,
int *  isvalid,
int  ndivs,
int  tt 
)

Member Data Documentation

◆ d_cenbuff

template<typename Tcomp , typename Tout >
CarmaObj<Tcomp>* SutraControllerCured< Tcomp, Tout >::d_cenbuff

Definition at line 57 of file sutra_controller_cured.h.

◆ d_err

template<typename Tcomp , typename Tout >
CarmaObj<Tcomp>* SutraControllerCured< Tcomp, Tout >::d_err

Definition at line 56 of file sutra_controller_cured.h.

◆ d_imat

template<typename Tcomp , typename Tout >
CarmaObj<Tcomp>* SutraControllerCured< Tcomp, Tout >::d_imat

Definition at line 60 of file sutra_controller_cured.h.

◆ h_centroids

template<typename Tcomp , typename Tout >
CarmaHostObj<Tcomp>* SutraControllerCured< Tcomp, Tout >::h_centroids

Definition at line 54 of file sutra_controller_cured.h.

◆ h_err

template<typename Tcomp , typename Tout >
CarmaHostObj<Tcomp>* SutraControllerCured< Tcomp, Tout >::h_err

Definition at line 55 of file sutra_controller_cured.h.

◆ h_parcure

template<typename Tcomp , typename Tout >
void* SutraControllerCured< Tcomp, Tout >::h_parcure

Definition at line 66 of file sutra_controller_cured.h.

◆ h_syscure

template<typename Tcomp , typename Tout >
void* SutraControllerCured< Tcomp, Tout >::h_syscure

Definition at line 64 of file sutra_controller_cured.h.

◆ ndivs

template<typename Tcomp , typename Tout >
int SutraControllerCured< Tcomp, Tout >::ndivs

Definition at line 50 of file sutra_controller_cured.h.

◆ tt_flag

template<typename Tcomp , typename Tout >
bool SutraControllerCured< Tcomp, Tout >::tt_flag

Definition at line 51 of file sutra_controller_cured.h.


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