Public Member Functions | Public Attributes | List of all members
ServoDescription Class Reference

Public Member Functions

float calculate_position (uint16_t pwm)
 
float normalize (uint16_t pwm)
 
 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

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.

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.

Member Data Documentation

float ServoDescription::joint_lower

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.

float ServoDescription::joint_upper

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.

bool ServoDescription::rc_rev

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.


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


mavros_extras
Author(s): Vladimir Ermakov , Amilcar Lucas
autogenerated on Tue Jun 1 2021 02:36:37