Commit 9acd1a33 authored by Timothee Habra's avatar Timothee Habra

user_finalization move prototype

parent e981e177
...@@ -77,6 +77,7 @@ void user_compute_output(SimStruct *S, MBSdataStruct *MBSdata, LocalDataStruct * ...@@ -77,6 +77,7 @@ void user_compute_output(SimStruct *S, MBSdataStruct *MBSdata, LocalDataStruct *
#else #else
int user_initialization(MBSdataStruct *MBSdata, LocalDataStruct *lds); int user_initialization(MBSdataStruct *MBSdata, LocalDataStruct *lds);
void user_compute_output(MBSdataStruct *MBSdata, LocalDataStruct *lds); void user_compute_output(MBSdataStruct *MBSdata, LocalDataStruct *lds);
void user_finalization(MBSdataStruct *MBSdata);
#endif #endif
void allocate_sensor(MBSsensorStruct *psens, int njoint); void allocate_sensor(MBSsensorStruct *psens, int njoint);
......
...@@ -398,10 +398,6 @@ void simulink_outputs(MBSdataStruct *MBSdata); ...@@ -398,10 +398,6 @@ void simulink_outputs(MBSdataStruct *MBSdata);
void simu_controller_loop(MBSdataStruct *MBSdata); void simu_controller_loop(MBSdataStruct *MBSdata);
void stop_simu(MBSdataStruct *MBSdata); void stop_simu(MBSdataStruct *MBSdata);
#ifdef STANDALONE
void user_finalization(MBSdataStruct *MBSdata);
#endif
// controller interface // controller interface
void controller_init_interface(MBSdataStruct *MBSdata); void controller_init_interface(MBSdataStruct *MBSdata);
void controller_loop_interface(MBSdataStruct *MBSdata); void controller_loop_interface(MBSdataStruct *MBSdata);
......
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
#ifdef STANDALONE #ifdef STANDALONE
#include "simu_def.h" #include "MBSdataStruct.h"
//#include "simu_def.h"
/* /*
* User function called at the end of the simulation * User function called at the end of the simulation
...@@ -20,5 +21,8 @@ ...@@ -20,5 +21,8 @@
void user_finalization(MBSdataStruct *MBSdata) void user_finalization(MBSdataStruct *MBSdata)
{ {
// controller
//controller_close_interface(MBSdata);
} }
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment