Cheetah Software  1.0
rt_interface_lcm.h
Go to the documentation of this file.
1 
6 #ifndef _RT_INTERFACE_LCM
7 #define _RT_INTERFACE_LCM
8 
9 #include <lcm/lcm-cpp.hpp>
10 class gui_main_control_settings_t;
11 class rc_channels_t;
12 
13 class Handler {
14  public:
23  void main_control_settings_handler(const lcm::ReceiveBuffer* rbuf,
24  const std::string& channel,
25  const gui_main_control_settings_t* msg);
26 
27  void rc_channels_handler(const lcm::ReceiveBuffer* rbuf,
28  const std::string& channel,
29  const rc_channels_t* msg);
30 };
31 
33 
34 void get_main_control_settings(void* settings);
36 void get_rc_channels(void* settings);
37 
38 void init_interface_lcm(lcm::LCM* main_lcm);
40 void* v_memcpy(void* dest, volatile void* src, size_t n);
41 
42 #endif
void main_control_settings_handler(const lcm::ReceiveBuffer *rbuf, const std::string &channel, const gui_main_control_settings_t *msg)
Handler for main control settings from MATLAB interface. Never call this yourself, leave it to LCM.
int get_iterations_since_last_lcm()
Gets the iterations since the last lcm.
void sbus_packet_complete()
Function which handles the completion of an SBUS Packet and overrides the LCM control settings as des...
void control_iteration_lcm()
Increments the number of control iterations since the last LCM packet.
void get_rc_channels(void *settings)
void init_interface_lcm(lcm::LCM *main_lcm)
Initializer for all handlers related to the interface LCM streams.
void rc_channels_handler(const lcm::ReceiveBuffer *rbuf, const std::string &channel, const rc_channels_t *msg)
void * v_memcpy(void *dest, volatile void *src, size_t n)
void get_main_control_settings(void *settings)