Robotran C Documentation
user_realtime.h
Go to the documentation of this file.
1 
2 #ifndef _USER_REALTIME_H_
3 #define _USER_REALTIME_H_
4 
5 #ifdef REAL_TIME
6 
7 #include "mbs_data.h"
8 #include "realtime.h"
9 #include "user_realtime_visu.h"
10 #include <stdint.h>
11 
12 #ifdef SDL
13 #include "SDL.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18  void user_realtime_plot(MbsData* mbs_data);
19  void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates);
20  void user_joystick_axes(MbsData* mbs_data, Simu_realtime *realtime, int nb_joysticks);
21  void user_joystick_buttons(MbsData* mbs_data, int buttonID);
22  void wait_key(Simu_realtime *realtime, int cur_t_usec, double tsim);
23 #ifdef __cplusplus
24 }
25 #endif
26 #endif
27 
28 #endif
29 
30 #ifdef __cplusplus
31 extern "C" {
32  void set_plot(double value, const char* label);
33 }
34 #else
35  void set_plot(double value, char* label);
36 #endif
37 
38 #endif
user_realtime_visu.h
user realtime visu prototype
mbs_data.h
MbsData
Definition: mbs_data.h:149
realtime.h
Real-time constraints main header.
Simu_realtime
real-time structure
Definition: realtime.h:99
set_plot
void set_plot(double value, char *label)
function called by the user to plot a curve (void in this case)
Definition: void_set_plot.c:18