![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
this class provides the controller_generic features to COMPASS More...
#include <sutra_controller_generic.h>
Public Member Functions | |
sutra_controller_generic (CarmaContext *context, long nvalid, long nslope, long nactu, float delay, SutraDms *dms, int *idx_dms, int ndm, int *idx_centro, int ncentro, int nstates) | |
sutra_controller_generic (const sutra_controller_generic &controller) | |
~sutra_controller_generic () | |
string | get_type () |
string | get_commandlaw () |
int | set_decayFactor (float *decayFactor) |
int | set_modal_gains (float *gain) |
int | set_cmat (float *cmat) |
int | set_matE (float *matE) |
int | set_commandlaw (string law) |
int | set_polc (bool p) |
int | set_imat (float *imat) |
int | comp_polc () |
int | comp_com () |
!!! YOU MUST set d_centroids before calling it!!!! More... | |
int | fill_cmatPadded () |
int | distribute_cmat () |
![]() | |
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 () |
Additional Inherited Members | |
![]() | |
mutex | comp_voltage_mutex |
this class provides the controller_generic features to COMPASS
Definition at line 49 of file sutra_controller_generic.h.
sutra_controller_generic< Tcomp, Tout >::sutra_controller_generic | ( | CarmaContext * | context, |
long | nvalid, | ||
long | nslope, | ||
long | nactu, | ||
float | delay, | ||
SutraDms * | dms, | ||
int * | idx_dms, | ||
int | ndm, | ||
int * | idx_centro, | ||
int | ncentro, | ||
int | nstates | ||
) |
sutra_controller_generic< Tcomp, Tout >::sutra_controller_generic | ( | const sutra_controller_generic< Tcomp, Tout > & | controller | ) |
sutra_controller_generic< Tcomp, Tout >::~sutra_controller_generic | ( | ) |
|
virtual |
!!! YOU MUST set d_centroids before calling it!!!!
Implements SutraController< Tcomp, Tout >.
int sutra_controller_generic< Tcomp, Tout >::comp_polc | ( | ) |
int sutra_controller_generic< Tcomp, Tout >::distribute_cmat | ( | ) |
int sutra_controller_generic< Tcomp, Tout >::fill_cmatPadded | ( | ) |
string sutra_controller_generic< Tcomp, Tout >::get_commandlaw | ( | ) |
|
virtual |
Implements SutraController< Tcomp, Tout >.
int sutra_controller_generic< Tcomp, Tout >::set_cmat | ( | float * | cmat | ) |
int sutra_controller_generic< Tcomp, Tout >::set_commandlaw | ( | string | law | ) |
int sutra_controller_generic< Tcomp, Tout >::set_decayFactor | ( | float * | decayFactor | ) |
int sutra_controller_generic< Tcomp, Tout >::set_imat | ( | float * | imat | ) |
int sutra_controller_generic< Tcomp, Tout >::set_matE | ( | float * | matE | ) |
int sutra_controller_generic< Tcomp, Tout >::set_modal_gains | ( | float * | gain | ) |
int sutra_controller_generic< Tcomp, Tout >::set_polc | ( | bool | p | ) |
string sutra_controller_generic< Tcomp, Tout >::command_law |
Definition at line 66 of file sutra_controller_generic.h.
CarmaObj<Tcomp>* sutra_controller_generic< Tcomp, Tout >::d_cmat |
Definition at line 52 of file sutra_controller_generic.h.
std::vector<CarmaObj<Tcomp> *> sutra_controller_generic< Tcomp, Tout >::d_cmat_ngpu |
Definition at line 61 of file sutra_controller_generic.h.
CarmaObj<Tcomp>* sutra_controller_generic< Tcomp, Tout >::d_cmatPadded |
Definition at line 53 of file sutra_controller_generic.h.
CarmaObj<Tcomp>* sutra_controller_generic< Tcomp, Tout >::d_compbuff |
Definition at line 56 of file sutra_controller_generic.h.
CarmaObj<Tcomp>* sutra_controller_generic< Tcomp, Tout >::d_compbuff2 |
Definition at line 57 of file sutra_controller_generic.h.
CarmaObj<Tcomp>* sutra_controller_generic< Tcomp, Tout >::d_decayFactor |
Definition at line 55 of file sutra_controller_generic.h.
std::vector<CarmaObj<Tcomp> *> sutra_controller_generic< Tcomp, Tout >::d_err_ngpu |
Definition at line 60 of file sutra_controller_generic.h.
CarmaObj<Tcomp>* sutra_controller_generic< Tcomp, Tout >::d_gain |
Definition at line 54 of file sutra_controller_generic.h.
CarmaObj<Tcomp>* sutra_controller_generic< Tcomp, Tout >::d_imat |
Definition at line 59 of file sutra_controller_generic.h.
CarmaObj<Tcomp>* sutra_controller_generic< Tcomp, Tout >::d_matE |
Definition at line 51 of file sutra_controller_generic.h.
CarmaObj<Tcomp>* sutra_controller_generic< Tcomp, Tout >::d_olmeas |
Definition at line 58 of file sutra_controller_generic.h.
int sutra_controller_generic< Tcomp, Tout >::nstates |
Definition at line 64 of file sutra_controller_generic.h.
std::vector<int> sutra_controller_generic< Tcomp, Tout >::P2Pdevices |
Definition at line 62 of file sutra_controller_generic.h.
bool sutra_controller_generic< Tcomp, Tout >::polc |
Definition at line 63 of file sutra_controller_generic.h.