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
2f8ee663
Commit
2f8ee663
authored
Mar 11, 2021
by
François Heremans
Browse files
Added ifdef to compile with realtime only
parent
3dd9d235
Changes
4
Hide whitespace changes
Inline
Side-by-side
MBsysC/mbs_common/mbs_realtime/realtime/auto_plot/auto_plot.c
View file @
2f8ee663
#ifdef REAL_TIME
#include
"auto_plot.h"
#include
"auto_plot.h"
#include
"useful_functions.h"
#include
"useful_functions.h"
...
@@ -106,3 +106,4 @@ int index_plot_string(AutoPlot *auto_plot, const char* label)
...
@@ -106,3 +106,4 @@ int index_plot_string(AutoPlot *auto_plot, const char* label)
}
}
#endif
\ No newline at end of file
MBsysC/mbs_common/mbs_realtime/realtime/auto_plot/auto_plot.h
View file @
2f8ee663
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
* \brief functions used to automatically update the user curves plotted
* \brief functions used to automatically update the user curves plotted
*/
*/
#ifdef REAL_TIME
#ifndef _AUTO_PLOT_H_
#ifndef _AUTO_PLOT_H_
#define _AUTO_PLOT_H_
#define _AUTO_PLOT_H_
...
@@ -31,3 +32,5 @@ int index_plot_string(AutoPlot *auto_plot, const char* label);
...
@@ -31,3 +32,5 @@ int index_plot_string(AutoPlot *auto_plot, const char* label);
#endif
#endif
#endif
\ No newline at end of file
MBsysC/mbs_common/mbs_realtime/realtime/auto_plot/set_plot.c
View file @
2f8ee663
#ifdef REAL_TIME
#ifndef HAVE_M_PI
#ifndef HAVE_M_PI
#define HAVE_M_PI // avoid redefinition of M_PI when including SDL
#define HAVE_M_PI // avoid redefinition of M_PI when including SDL
#endif // !HAVE_M_PI
#endif // !HAVE_M_PI
...
@@ -66,3 +68,5 @@ void set_plot(double value, char* label)
...
@@ -66,3 +68,5 @@ void set_plot(double value, char* label)
update_auto_plot
(
auto_plot
,
value
,
label
);
update_auto_plot
(
auto_plot
,
value
,
label
);
}
}
}
}
#endif
\ No newline at end of file
MBsysC/mbs_common/mbs_realtime/realtime/auto_plot/set_plot.h
View file @
2f8ee663
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
* \brief set_plot function called by the user to plot a curve
* \brief set_plot function called by the user to plot a curve
*/
*/
#ifdef REAL_TIME
#ifndef _SET_PLOT_H_
#ifndef _SET_PLOT_H_
#define _SET_PLOT_H_
#define _SET_PLOT_H_
...
@@ -20,3 +22,5 @@
...
@@ -20,3 +22,5 @@
void
free_set_plot
();
void
free_set_plot
();
#endif
#endif
#endif
\ No newline at end of file
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