Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
robotran
mbsysc
Commits
e2029e62
Commit
e2029e62
authored
Dec 18, 2020
by
Sébastien Timmermans
Browse files
[ErrMsg][Fix] real-time dirdyn mbs_error call
parent
5af0b462
Changes
1
Hide whitespace changes
Inline
Side-by-side
MBsysC/mbs_common/mbs_module/mbs_dirdyn.c
View file @
e2029e62
...
...
@@ -324,7 +324,7 @@ int mbs_dirdyn_init(MbsDirdyn* dd, MbsData* mbs_data)
if
(
err
<
0
)
{
mbs_msg
(
"
\t
>Real-time> error during activation !
\n
"
);
mbs_msg
(
"[%d] in mbs_dirdyn_init !!
\n
"
,
err
);
mbs_msg
(
"[%d] in mbs_dirdyn_init
, shutting down the process
!!
\n
"
,
err
);
return
err
;
}
}
...
...
@@ -333,7 +333,7 @@ int mbs_dirdyn_init(MbsDirdyn* dd, MbsData* mbs_data)
{
err
=
_MBS_ERR_INIT
;
mbs_msg
(
"
\t
>Real-time> To use the real-time features (mbs_dirdyn->options->realtime activated), set the CMake flag 'FLAG_REAL_TIME' to ON !
\n
"
);
mbs_msg
(
"[%d] in mbs_dirdyn_init !!
\n
"
,
err
);
mbs_msg
(
"[%d] in mbs_dirdyn_init
, shutting down the process
!!
\n
"
,
err
);
return
err
;
}
#endif
...
...
@@ -545,7 +545,7 @@ int mbs_dirdyn_init(MbsDirdyn* dd, MbsData* mbs_data)
free
(
bufElemNb
);
mbs_msg
(
"
\t
>Real-time> Error: real-time features must be activated to set 'save_visu' to 1 !
\n
"
);
mbs_msg
(
"[%d] in mbs_dirdyn_init !!
\n
"
,
_MBS_ERR_INIT
);
mbs_msg
(
"[%d] in mbs_dirdyn_init
, shutting down the process
!!
\n
"
,
_MBS_ERR_INIT
);
return
_MBS_ERR_INIT
;
}
...
...
@@ -562,7 +562,7 @@ int mbs_dirdyn_init(MbsDirdyn* dd, MbsData* mbs_data)
free
(
bufElemNb
);
mbs_msg
(
"
\t
>Real-time> Error: flag_visu must be set to 1 to set 'save_value' to 1 !
\n
"
);
mbs_msg
(
"[%d] in mbs_dirdyn_init !!
\n
"
,
_MBS_ERR_INIT
);
mbs_msg
(
"[%d] in mbs_dirdyn_init
, shutting down the process
!!
\n
"
,
_MBS_ERR_INIT
);
return
_MBS_ERR_INIT
;
}
...
...
@@ -586,7 +586,7 @@ int mbs_dirdyn_init(MbsDirdyn* dd, MbsData* mbs_data)
free
(
bufElemNb
);
mbs_msg
(
"
\t
>Dirdyn> [REAL-TIME] Error during buffer visu initialization num %d!
\n
"
,
i
);
mbs_msg
(
"[%d] in mbs_dirdyn_init !!
\n
"
,
_MBS_ERR_MOD_SPEC_11
);
mbs_msg
(
"[%d] in mbs_dirdyn_init
, shutting down the process
!!
\n
"
,
_MBS_ERR_MOD_SPEC_11
);
return
_MBS_ERR_MOD_SPEC_11
;
}
}
...
...
@@ -755,7 +755,7 @@ int mbs_dirdyn_finish(MbsDirdyn* dd, MbsData* mbs_data) {
#ifdef REAL_TIME
realtime
=
(
Simu_realtime
*
)
mbs_data
->
realtime
;
if
(
dd
->
options
->
realtime
)
if
(
dd
->
options
->
realtime
&&
!
realtime
)
{
err
=
mbs_realtime_finish
((
Simu_realtime
*
)
mbs_data
->
realtime
);
if
(
err
<
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment