Public Member Functions | Public Attributes
ServoDescription Class Reference

List of all members.

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

Detailed Description

Definition at line 21 of file servo_state_publisher.cpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

float ServoDescription::calculate_position ( uint16_t  pwm) [inline]

Definition at line 94 of file servo_state_publisher.cpp.

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_rev ( false  ) [inline]

Definition at line 44 of file servo_state_publisher.cpp.


Member Data Documentation

Definition at line 24 of file servo_state_publisher.cpp.

Definition at line 23 of file servo_state_publisher.cpp.

Definition at line 25 of file servo_state_publisher.cpp.

Definition at line 27 of file servo_state_publisher.cpp.

Definition at line 32 of file servo_state_publisher.cpp.

Definition at line 30 of file servo_state_publisher.cpp.

Definition at line 29 of file servo_state_publisher.cpp.

Definition at line 33 of file servo_state_publisher.cpp.

Definition at line 31 of file servo_state_publisher.cpp.


The documentation for this class was generated from the following file:


mavros_extras
Author(s): Vladimir Ermakov
autogenerated on Sat Jun 8 2019 19:55:27