Marine systems simulation
CChirpsignal Class Reference
+ Inheritance diagram for CChirpsignal:
+ Collaboration diagram for CChirpsignal:

Public Member Functions

 CChirpsignal (std::string sSimObjectName, ISimObjectCreator *pCreator)
 
void OdeFcn (const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
 Calculates the state derivatives. More...
 
- Public Member Functions inherited from CSrcBase
 CSrcBase (std::string sSimObjectName, ISimObjectCreator *pCreator)
 The constructor.
 
virtual ~CSrcBase ()
 The destructor.
 
virtual void OdeFcn (const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
 Calculates the state derivatives. More...
 

Protected Member Functions

void CalcOutput (const double dTime, const double *const adX)
 Calculations of the output signals. More...
 
- Protected Member Functions inherited from CSrcBase
void ReadParameter (std::string sTag, double *adVals, double dDefault, ISimObjectCreator *pCreator)
 Utility function to read a parameter.
 
bool ReadTwinParameters (std::string sTagA, double dDefaultA, std::string sTagB, double dDefaultB, double *adVals, ISimObjectCreator *pCreator)
 Utility function to read a parameter with two possible representations or units.
 
virtual void CalcOutput (const double dT, const double *const adX)=0
 Calculations of the output signals. More...
 
virtual const double * Signal (const double dT, const double *const adX)
 The output signal.
 
virtual const double * SignalDot (const double dT, const double *const adX)
 The derivative of the output signal.
 

Protected Attributes

double * m_Frequency
 
double * m_Targettime
 
double * m_FrequencyatTargettime
 
double m_ToRads
 
- Protected Attributes inherited from CSrcBase
double * m_adOutSignal
 The output signal.
 
double * m_adOutSignalDot
 The derivative of the output signal.
 
int m_iPortWidth
 The width of the output port.
 
sfh::timers::Timer m_OutputTimer
 Timer to ensure that signals are updated only once per timestep.
 

Member Function Documentation

◆ CalcOutput()

void CChirpsignal::CalcOutput ( const double  dT,
const double *const  adX 
)
protectedvirtual

Implements CSrcBase.

◆ OdeFcn()

void CChirpsignal::OdeFcn ( const double  dT,
const double *const  adX,
double *const  adXDot,
const bool  bIsMajorTimeStep 
)
inlinevirtual

Reimplemented from CSrcBase.

Member Data Documentation

◆ m_Frequency

double* CChirpsignal::m_Frequency
protected

The current signal frequency

◆ m_FrequencyatTargettime

double* CChirpsignal::m_FrequencyatTargettime
protected

The final frequency reached at the specified target time. [Hz]

◆ m_Targettime

double* CChirpsignal::m_Targettime
protected

The time when the signal reaches the final frequency [sec]


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