h4r_x52_joyext
LED and MFD Control for Saitek X52 Pro
|
#include <x52_joyext.h>
Public Member Functions | |
X52_JoyExt (ros::NodeHandle &n) | |
virtual | ~X52_JoyExt () |
void | send_to_joystick () |
Private Member Functions | |
void | setLEDs (uint8_t inValue, uint8_t *red, uint8_t *green, bool *update) |
void | cb_leds (const h4r_x52_joyext::x52_led_colorConstPtr &msg) |
void | cb_mfd_text (const h4r_x52_joyext::x52_mfdConstPtr &msg) |
void | cb_date (const h4r_x52_joyext::x52_dateConstPtr &msg) |
void | cb_time (const h4r_x52_joyext::x52_timeConstPtr &msg) |
void | cb_brighnessMFD (const std_msgs::UInt8ConstPtr &msg) |
void | cb_brighnessLED (const std_msgs::UInt8ConstPtr &msg) |
Private Attributes | |
ros::NodeHandle & | nh |
ros::Rate * | loop_rate |
bool | updateLED [10] |
bool | updateLED_b |
bool | updateMFD [3] |
bool | updateMFD_b |
bool | updateDate |
bool | updateTime |
bool | updateOffset [2] |
bool | updateBrightnessMFD |
bool | updateBrightnessLED |
uint8_t | LED [19] |
std::string | mfd_content [3] |
uint8_t | Date [3] |
uint8_t | Time_24 |
uint8_t | Time [2] |
uint8_t | Offset [2] |
uint8_t | Offset_24 [2] |
uint8_t | Offset_Inv [2] |
uint8_t | brightnessMFD |
uint8_t | brightnessLED |
ros::Subscriber | subleds |
ros::Subscriber | submfd_text |
ros::Subscriber | subdate |
ros::Subscriber | subtime |
ros::Subscriber | subbrightnessMFD |
ros::Subscriber | subbrightnessLED |
Definition at line 44 of file x52_joyext.h.
X52_JoyExt::X52_JoyExt | ( | ros::NodeHandle & | n | ) |
Definition at line 18 of file x52_joyext.cpp.
References brightnessLED, brightnessMFD, cb_brighnessLED(), cb_brighnessMFD(), cb_date(), cb_leds(), cb_mfd_text(), cb_time(), Date, LED, loop_rate, mfd_content, nh, Offset, send_to_joystick(), subbrightnessLED, subbrightnessMFD, subdate, subleds, submfd_text, subtime, Time, updateBrightnessLED, updateBrightnessMFD, updateDate, updateLED, updateLED_b, updateMFD, updateOffset, and updateTime.
|
virtual |
Definition at line 64 of file x52_joyext.cpp.
References loop_rate.
|
private |
Definition at line 179 of file x52_joyext.cpp.
References brightnessLED, and updateBrightnessLED.
Referenced by X52_JoyExt().
|
private |
Definition at line 173 of file x52_joyext.cpp.
References brightnessMFD, and updateBrightnessMFD.
Referenced by X52_JoyExt().
|
private |
Definition at line 138 of file x52_joyext.cpp.
References Date, and updateDate.
Referenced by X52_JoyExt().
|
private |
Definition at line 69 of file x52_joyext.cpp.
References LED, setLEDs(), and updateLED.
Referenced by X52_JoyExt().
|
private |
Definition at line 90 of file x52_joyext.cpp.
References mfd_content, and updateMFD.
Referenced by X52_JoyExt().
|
private |
Definition at line 146 of file x52_joyext.cpp.
References Offset, Offset_24, Offset_Inv, Time, Time_24, updateOffset, and updateTime.
Referenced by X52_JoyExt().
void X52_JoyExt::send_to_joystick | ( | ) |
Definition at line 188 of file x52_joyext.cpp.
References brightnessLED, brightnessMFD, Date, LED, loop_rate, mfd_content, Offset, Offset_24, Offset_Inv, SLEEP_AFTER_COMMAND, Time, Time_24, updateBrightnessLED, updateBrightnessMFD, updateDate, updateLED, updateMFD, updateOffset, and updateTime.
Referenced by X52_JoyExt().
|
inlineprivate |
Definition at line 80 of file x52_joyext.h.
Referenced by cb_leds().
|
private |
Definition at line 70 of file x52_joyext.h.
Referenced by cb_brighnessLED(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 69 of file x52_joyext.h.
Referenced by cb_brighnessMFD(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 63 of file x52_joyext.h.
Referenced by cb_date(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 61 of file x52_joyext.h.
Referenced by cb_leds(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 47 of file x52_joyext.h.
Referenced by send_to_joystick(), X52_JoyExt(), and ~X52_JoyExt().
|
private |
Definition at line 62 of file x52_joyext.h.
Referenced by cb_mfd_text(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 46 of file x52_joyext.h.
Referenced by X52_JoyExt().
|
private |
Definition at line 66 of file x52_joyext.h.
Referenced by cb_time(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 67 of file x52_joyext.h.
Referenced by cb_time(), and send_to_joystick().
|
private |
Definition at line 68 of file x52_joyext.h.
Referenced by cb_time(), and send_to_joystick().
|
private |
Definition at line 78 of file x52_joyext.h.
Referenced by X52_JoyExt().
|
private |
Definition at line 77 of file x52_joyext.h.
Referenced by X52_JoyExt().
|
private |
Definition at line 75 of file x52_joyext.h.
Referenced by X52_JoyExt().
|
private |
Definition at line 73 of file x52_joyext.h.
Referenced by X52_JoyExt().
|
private |
Definition at line 74 of file x52_joyext.h.
Referenced by X52_JoyExt().
|
private |
Definition at line 76 of file x52_joyext.h.
Referenced by X52_JoyExt().
|
private |
Definition at line 65 of file x52_joyext.h.
Referenced by cb_time(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 64 of file x52_joyext.h.
Referenced by cb_time(), and send_to_joystick().
|
private |
Definition at line 58 of file x52_joyext.h.
Referenced by cb_brighnessLED(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 57 of file x52_joyext.h.
Referenced by cb_brighnessMFD(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 54 of file x52_joyext.h.
Referenced by cb_date(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 50 of file x52_joyext.h.
Referenced by cb_leds(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 51 of file x52_joyext.h.
Referenced by X52_JoyExt().
|
private |
Definition at line 52 of file x52_joyext.h.
Referenced by cb_mfd_text(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 53 of file x52_joyext.h.
|
private |
Definition at line 56 of file x52_joyext.h.
Referenced by cb_time(), send_to_joystick(), and X52_JoyExt().
|
private |
Definition at line 55 of file x52_joyext.h.
Referenced by cb_time(), send_to_joystick(), and X52_JoyExt().