IRDYn/GC_calibration/GC_calibration_slrt_rtw/instrumented/xpcoptions.h

56 lines
2.0 KiB
C
Raw Normal View History

2024-11-06 15:46:33 +00:00
#ifndef __GC_calibration_XPCOPTIONS_H___
#define __GC_calibration_XPCOPTIONS_H___
#include "simstruc_types.h"
#ifndef MT
#define MT 0 /* MT may be undefined by simstruc_types.h */
#endif
#include "GC_calibration.h"
#define XPCMDSSUPPORT 0
#define MDSTASKSNUM 0
#define FULLMULTITHREAD 1
#define SIZEOF_PARAMS (-1 * (int)sizeof(P_GC_calibration_T))
#define SIMMODE 0
#define LOGTET 0
#define LOGBUFSIZE 100000
#define PROFILINGFLAG 1
#define EVENTNUMBER 5000
#define IRQ_NO 0
#define IO_IRQ 0
#define WWW_ACCESS_LEVEL 0
#define CPUCLOCK 0
#define MAXOVERLOAD 0
#define MAXOVERLOADLEN 0
#define XPCMODELSTACKSIZEKB 2048
#define XPCSTARTUPFLAG 1
#define PTLOADPARAMFLAG 0
#define DOUBLEBUFFERING 0
#define SLRTFTZOFFFLAG 0
/* Change all stepsize using the newBaseRateStepSize */
void GC_calibration_ChangeStepSize(real_T newBaseRateStepSize,
RT_MODEL_GC_calibration_T *const GC_calibration_M)
{
real_T ratio = newBaseRateStepSize / 0.0005;
/* update non-zore stepsize of periodic
* sample time. Stepsize of asynchronous
* sample time is not changed in this function */
GC_calibration_M->Timing.stepSize0 = GC_calibration_M->Timing.stepSize0 *
ratio;
GC_calibration_M->Timing.stepSize = GC_calibration_M->Timing.stepSize * ratio;
}
void XPCCALLCONV changeStepSize(real_T stepSize)
{
/* Change all stepsize using the newBaseRateStepSize */
GC_calibration_ChangeStepSize(stepSize, GC_calibration_M);
}
void XPCCALLCONV SLRTSetErrorStatus(const char * errMsg)
{
rtmSetErrorStatus(GC_calibration_M, errMsg);
}
#endif /* __GC_calibration_XPCOPTIONS_H___ */