Public Member Functions | |
float | calculate_position (uint16_t pwm) |
joint_lower (-M_PI/4) | |
joint_upper (M_PI/4) | |
float | normalize (uint16_t pwm) |
rc_channel (0) | |
rc_dz (0) | |
rc_max (2000) | |
rc_min (1000) | |
rc_rev (false) | |
rc_trim (1500) | |
ServoDescription () | |
ServoDescription (std::string joint_name_, double lower_, double upper_, int channel_, int min_, int max_, int trim_, int dz_, bool rev_) | |
Public Attributes | |
float | joint_lower |
std::string | joint_name |
float | joint_upper |
size_t | rc_channel |
uint16_t | rc_dz |
uint16_t | rc_max |
uint16_t | rc_min |
bool | rc_rev |
uint16_t | rc_trim |
Definition at line 21 of file servo_state_publisher.cpp.
ServoDescription::ServoDescription | ( | ) | [inline] |
Definition at line 35 of file servo_state_publisher.cpp.
ServoDescription::ServoDescription | ( | std::string | joint_name_, |
double | lower_, | ||
double | upper_, | ||
int | channel_, | ||
int | min_, | ||
int | max_, | ||
int | trim_, | ||
int | dz_, | ||
bool | rev_ | ||
) | [inline] |
Definition at line 47 of file servo_state_publisher.cpp.
float ServoDescription::calculate_position | ( | uint16_t | pwm | ) | [inline] |
Definition at line 94 of file servo_state_publisher.cpp.
ServoDescription::joint_lower | ( | -M_PI/ | 4 | ) |
ServoDescription::joint_upper | ( | M_PI/ | 4 | ) |
float ServoDescription::normalize | ( | uint16_t | pwm | ) | [inline] |
Normalization code taken from PX4 Firmware src/modules/sensors/sensors.cpp Sensors::rc_poll() line 1966
Definition at line 66 of file servo_state_publisher.cpp.
ServoDescription::rc_dz | ( | 0 | ) |
ServoDescription::rc_max | ( | 2000 | ) |
ServoDescription::rc_min | ( | 1000 | ) |
ServoDescription::rc_rev | ( | false | ) | [inline] |
Definition at line 44 of file servo_state_publisher.cpp.
ServoDescription::rc_trim | ( | 1500 | ) |
Definition at line 24 of file servo_state_publisher.cpp.
std::string ServoDescription::joint_name |
Definition at line 23 of file servo_state_publisher.cpp.
Definition at line 25 of file servo_state_publisher.cpp.
size_t ServoDescription::rc_channel |
Definition at line 27 of file servo_state_publisher.cpp.
uint16_t ServoDescription::rc_dz |
Definition at line 32 of file servo_state_publisher.cpp.
uint16_t ServoDescription::rc_max |
Definition at line 30 of file servo_state_publisher.cpp.
uint16_t ServoDescription::rc_min |
Definition at line 29 of file servo_state_publisher.cpp.
Definition at line 33 of file servo_state_publisher.cpp.
uint16_t ServoDescription::rc_trim |
Definition at line 31 of file servo_state_publisher.cpp.