Interface for simulation modules, the simulation module is discovered and loaded during runtime.
More...
|
| file | simu.h |
| | Simulation Module Interface Definition.
|
| |
|
| typedef void(* | tfSimInit) (int nbCars, tTrack *track, tdble fuelFactor, tdble damageFactor, tdble tireFactor) |
| | Callback function prototype for simulation module initialization (bring up module and hand over track and parameters) More...
|
| |
| typedef void(* | tfSimConfig) (tCarElt *carElt, struct RmInfo *reInfo) |
| | Callback function prototype for simulation configuration of a given car. More...
|
| |
| typedef void(* | tfSimReConfig) (tCarElt *carElt) |
| | Callback function prototype for simulation reconfiguration of a given car (refueling, setup adjustments) More...
|
| |
| typedef void(* | tfSimUpdate) (struct Situation *s, double deltaTime, int telemetry) |
| | Callback function prototype for progressing the given Situation by a given simulation time step. More...
|
| |
| typedef void(* | tfSimShutdown) (void) |
| | Callback function prototype for simulation module shutdown. More...
|
| |
Interface for simulation modules, the simulation module is discovered and loaded during runtime.
◆ tfSimConfig
| typedef void(* tfSimConfig) (tCarElt *carElt, struct RmInfo *reInfo) |
Callback function prototype for simulation configuration of a given car.
- Parameters
-
| [in] | carElt | Car to configure |
| [in] | reInfo | Race manager info |
Definition at line 60 of file simu.h.
◆ tfSimInit
Callback function prototype for simulation module initialization (bring up module and hand over track and parameters)
- Parameters
-
| [in] | nbCars | Number of cars to simulate |
| [in] | track | Track to race on |
| [in] | fuelFactor | Factor for fuel consumtion, e.g 1 for normal, 0 for none, etc. |
| [in] | damageFactor | Factor for damage, e.g. 1 for normal, 0 for none, etc. |
| [in] | tireFactor | Factor for tire wear, e.g. 1 for normal, 0 for none, etc. |
Definition at line 53 of file simu.h.
◆ tfSimReConfig
| typedef void(* tfSimReConfig) (tCarElt *carElt) |
Callback function prototype for simulation reconfiguration of a given car (refueling, setup adjustments)
- Parameters
-
| [in] | carElt | Car to reconfigure |
Definition at line 66 of file simu.h.
◆ tfSimShutdown
| typedef void(* tfSimShutdown) (void) |
Callback function prototype for simulation module shutdown.
Definition at line 79 of file simu.h.
◆ tfSimUpdate
Callback function prototype for progressing the given Situation by a given simulation time step.
- Parameters
-
| [in,out] | s | Situation to progress |
| [in] | deltaTime | Timestep, usually RCM_MAX_DT_SIMU |
| [in] | telemetry | Index of car to receive telemetry |
Definition at line 74 of file simu.h.