|
APM:Libraries
|
#include <AP_Winch.h>
Classes | |
| struct | Backend_Config |
Public Member Functions | |
| AP_Winch () | |
| bool | enabled () const |
| void | init (const AP_WheelEncoder *wheel_encoder=nullptr) |
| void | update () |
| void | relax () |
| float | get_line_length () const |
| void | release_length (float length, float rate=0.0f) |
| void | set_desired_rate (float rate) |
| float | get_rate_max () const |
Static Public Attributes | |
| static const struct AP_Param::GroupInfo | var_info [] |
Private Types | |
| enum | winch_state { STATE_RELAXED = 0, STATE_POSITION, STATE_RATE } |
Private Attributes | |
| AP_Int8 | _enabled |
| struct AP_Winch::Backend_Config | config |
| AP_Winch_Backend * | backend |
Friends | |
| class | AP_Winch_Backend |
| class | AP_Winch_Servo |
Definition at line 35 of file AP_Winch.h.
|
private |
| Enumerator | |
|---|---|
| STATE_RELAXED | |
| STATE_POSITION | |
| STATE_RATE | |
Definition at line 75 of file AP_Winch.h.
| AP_Winch::AP_Winch | ( | ) |
| bool AP_Winch::enabled | ( | void | ) | const |
Definition at line 77 of file AP_Winch.cpp.
|
inline |
|
inline |
Definition at line 65 of file AP_Winch.h.
Referenced by release_length(), and set_desired_rate().
| void AP_Winch::init | ( | const AP_WheelEncoder * | wheel_encoder = nullptr | ) |
|
inline |
Definition at line 52 of file AP_Winch.h.
| void AP_Winch::release_length | ( | float | length, |
| float | rate = 0.0f |
||
| ) |
Definition at line 109 of file AP_Winch.cpp.
Referenced by get_line_length().
| void AP_Winch::set_desired_rate | ( | float | rate | ) |
Definition at line 121 of file AP_Winch.cpp.
Referenced by get_line_length().
| void AP_Winch::update | ( | ) |
|
friend |
Definition at line 36 of file AP_Winch.h.
|
friend |
Definition at line 37 of file AP_Winch.h.
Referenced by init().
|
private |
Definition at line 72 of file AP_Winch.h.
|
private |
Definition at line 92 of file AP_Winch.h.
|
private |
Referenced by enabled(), get_line_length(), get_rate_max(), init(), relax(), release_length(), and set_desired_rate().
|
static |
Definition at line 67 of file AP_Winch.h.
Referenced by AP_Winch().
1.8.13