Skip to content

Commit

Permalink
Add function descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Perrrewi committed Dec 11, 2024
1 parent f89e066 commit 33d2023
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/modules/simulation/gz_bridge/GZMixingInterfaceServo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,33 @@ class GZMixingInterfaceServo : public OutputModuleInterface
float get_tl_angle_min(const size_t index);
float get_cs_angle_max(const size_t index);
float get_cs_angle_min(const size_t index);

/**
* @brief Checks if the servo index is configured to tiltrotor.
* Tiltrotors should be ordered after the control surfaces.
* @param index: int
* @return True if the index is as expected, otherwise False.
*/
bool is_tiltrotor(const int index);
double get_angle_min_wrapper(const int index);

/**
* @brief Get maximum configured angle of servo.
* Takes the maximum value from tilt or control surface param
* dependent on input index.
* @param index: servo index
* @return angle_max [rad]
*/
double get_angle_max_wrapper(const int index);

/**
* @brief Get minimum configured angle of servo.
* Takes the minimum value from tilt or control surface param
* dependent on input index.
* @param index: servo index
* @return angle_min [rad]
*/
double get_angle_min_wrapper(const int index);

gz::transport::Node &_node;
pthread_mutex_t &_node_mutex;

Expand Down

0 comments on commit 33d2023

Please sign in to comment.