Drake
realtime.cpp File Reference
#include <simstruc.h>
#include <chrono>
#include <thread>
#include "cg_sfun.h"
Include dependency graph for realtime.cpp:

Macros

#define S_FUNCTION_NAME   realtime
 
#define S_FUNCTION_LEVEL   2
 
#define UNUSED(x)   (void)(x)
 
#define MDL_INITIAL_SIZES
 
#define MDL_INITIALIZE_SAMPLE_TIMES
 
#define MDL_CHECK_PARAMETERS
 
#define MDL_START
 
#define MDL_UPDATE
 
#define MDL_OUTPUTS
 

Typedefs

typedef std::chrono::system_clock TimeClock
 
typedef std::chrono::duration< doubleTimeDuration
 
typedef std::chrono::time_point< TimeClock, TimeDurationTimePoint
 

Functions

static void mdlInitializeSizes (SimStruct *S)
 
static void mdlInitializeSampleTimes (SimStruct *S)
 
static void mdlStart (SimStruct *S)
 
static void mdlUpdate (SimStruct *S, int_T tid)
 
static void mdlOutputs (SimStruct *S, int_T tid)
 
static void mdlTerminate (SimStruct *S)
 

Macro Definition Documentation

#define MDL_CHECK_PARAMETERS
#define MDL_INITIAL_SIZES
#define MDL_INITIALIZE_SAMPLE_TIMES
#define MDL_OUTPUTS
#define MDL_START
#define MDL_UPDATE
#define S_FUNCTION_LEVEL   2
#define S_FUNCTION_NAME   realtime
#define UNUSED (   x)    (void)(x)

Typedef Documentation

typedef std::chrono::system_clock TimeClock
typedef std::chrono::duration<double> TimeDuration
typedef std::chrono::time_point<TimeClock, TimeDuration> TimePoint

Function Documentation

static void mdlInitializeSampleTimes ( SimStruct *  S)
static
static void mdlInitializeSizes ( SimStruct *  S)
static
static void mdlOutputs ( SimStruct *  S,
int_T  tid 
)
static
static void mdlStart ( SimStruct *  S)
static
static void mdlTerminate ( SimStruct *  S)
static
static void mdlUpdate ( SimStruct *  S,
int_T  tid 
)
static

Here is the call graph for this function: