RCAC C++
RCACCreator.hpp File Reference
#include "RCAC.hpp"
#include "RCACRLS.hpp"
#include "RCACGrad.hpp"
Include dependency graph for RCACCreator.hpp:

Go to the source code of this file.

Functions

rcacFilt initFiltSimulink (int lz, int ly, int lu, int Nc, int filtorder, double *&FILTmx)
 
RCACinitSimulink (double *&FLAGSmx, double *&FILTmx, std::string &rcacType)
 

Variables

std::string useRLS = "RLS"
 
std::string useGrad = "Grad"
 

Detailed Description

Define the methods for initializing different RCAC types here

Parameters
useRLSThe flag for the RLS based RCAC
useGradThe flag for the Gradient based RCAC

Function Documentation

◆ initSimulink()

RCAC* initSimulink ( double *&  FLAGSmx,
double *&  FILTmx,
std::string &  rcacType 
)

This function takes an array format of the Flags and Filt from MATLAB and converts them to a Eigen compatible matrix/vector.

This must be defined for each type of RCAC that is created.

This function is NOT meant to be called outside of RCACSimulink.cpp

Parameters
FLAGSmxArray from MATLAB in a special order for the flags (check the source file for the order)
FILTmxArray from MATLAB in a special order for the filter variables
rcacTypeRCAC type taken from a matlab char string (C-style) and converted to a string (C++ string)