mit-biomimetics / Cheetah-Software

MIT License
2.62k stars 929 forks source link

What's the function of rt_interface_lcm? #7

Closed JacobShenHdu closed 5 years ago

JacobShenHdu commented 5 years ago

It seems to read data from sbus, and modify the attributes of “main_control_settings” based on the data. But I don't know who send data to sbus , and who publish message on "INTERFACE_gui_main_control_settings" channel with LCM, and how does “main_control_settings” work in the program.

dicarlo236 commented 5 years ago

We use this code to control the robot with a wireless R/C radio when testing untethered. The radio receiver connects to the control computer with SBUS. It is an alternative to the USB game controller, but also allows us to change the current mode (locomotion, standing, ...). The LCM channel is no longer used, and nothing will send/receive messages with the "INTERFACE_gui_main_control_settings" (nothing ever calls the init_interface_lcm function).

JacobShenHdu commented 5 years ago

We use this code to control the robot with a wireless R/C radio when testing untethered. The radio receiver connects to the control computer with SBUS. It is an alternative to the USB game controller, but also allows us to change the current mode (locomotion, standing, ...). The LCM channel is no longer used, and nothing will send/receive messages with the "INTERFACE_gui_main_control_settings" (nothing ever calls the init_interface_lcm function).

Thanks for your detailed explanation.