APM:Libraries
|
#include <AP_WheelEncoder.h>
Classes | |
struct | WheelEncoder_State |
Public Types | |
enum | WheelEncoder_Type { WheelEncoder_TYPE_NONE = 0, WheelEncoder_TYPE_QUADRATURE = 1 } |
Public Member Functions | |
AP_WheelEncoder (void) | |
void | init (void) |
void | update (void) |
uint8_t | num_sensors (void) const |
bool | healthy (uint8_t instance) const |
bool | enabled (uint8_t instance) const |
uint16_t | get_counts_per_revolution (uint8_t instance) const |
float | get_wheel_radius (uint8_t instance) const |
Vector3f | get_position (uint8_t instance) const |
float | get_delta_angle (uint8_t instance) const |
float | get_distance (uint8_t instance) const |
uint32_t | get_total_count (uint8_t instance) const |
uint32_t | get_error_count (uint8_t instance) const |
float | get_signal_quality (uint8_t instance) const |
uint32_t | get_last_reading_ms (uint8_t instance) const |
Static Public Attributes | |
static const struct AP_Param::GroupInfo | var_info [] |
Protected Attributes | |
AP_Int8 | _type [WHEELENCODER_MAX_INSTANCES] |
AP_Int16 | _counts_per_revolution [WHEELENCODER_MAX_INSTANCES] |
AP_Float | _wheel_radius [WHEELENCODER_MAX_INSTANCES] |
AP_Vector3f | _pos_offset [WHEELENCODER_MAX_INSTANCES] |
AP_Int8 | _pina [WHEELENCODER_MAX_INSTANCES] |
AP_Int8 | _pinb [WHEELENCODER_MAX_INSTANCES] |
WheelEncoder_State | state [WHEELENCODER_MAX_INSTANCES] |
AP_WheelEncoder_Backend * | drivers [WHEELENCODER_MAX_INSTANCES] |
uint8_t | num_instances |
Friends | |
class | AP_WheelEncoder_Backend |
class | AP_WheelEncoder_Quadrature |
Definition at line 29 of file AP_WheelEncoder.h.
Enumerator | |
---|---|
WheelEncoder_TYPE_NONE | |
WheelEncoder_TYPE_QUADRATURE |
Definition at line 38 of file AP_WheelEncoder.h.
AP_WheelEncoder::AP_WheelEncoder | ( | void | ) |
bool AP_WheelEncoder::enabled | ( | uint8_t | instance | ) | const |
Definition at line 198 of file AP_WheelEncoder.cpp.
Referenced by num_sensors().
uint16_t AP_WheelEncoder::get_counts_per_revolution | ( | uint8_t | instance | ) | const |
Definition at line 211 of file AP_WheelEncoder.cpp.
Referenced by num_sensors().
float AP_WheelEncoder::get_delta_angle | ( | uint8_t | instance | ) | const |
Definition at line 241 of file AP_WheelEncoder.cpp.
Referenced by get_distance(), and num_sensors().
float AP_WheelEncoder::get_distance | ( | uint8_t | instance | ) | const |
Definition at line 255 of file AP_WheelEncoder.cpp.
Referenced by num_sensors(), and AP_Winch_Servo::update().
uint32_t AP_WheelEncoder::get_error_count | ( | uint8_t | instance | ) | const |
Definition at line 272 of file AP_WheelEncoder.cpp.
Referenced by num_sensors().
uint32_t AP_WheelEncoder::get_last_reading_ms | ( | uint8_t | instance | ) | const |
Definition at line 292 of file AP_WheelEncoder.cpp.
Referenced by num_sensors().
Vector3f AP_WheelEncoder::get_position | ( | uint8_t | instance | ) | const |
Definition at line 231 of file AP_WheelEncoder.cpp.
Referenced by num_sensors().
float AP_WheelEncoder::get_signal_quality | ( | uint8_t | instance | ) | const |
Definition at line 282 of file AP_WheelEncoder.cpp.
Referenced by num_sensors().
uint32_t AP_WheelEncoder::get_total_count | ( | uint8_t | instance | ) | const |
Definition at line 262 of file AP_WheelEncoder.cpp.
Referenced by num_sensors().
float AP_WheelEncoder::get_wheel_radius | ( | uint8_t | instance | ) | const |
Definition at line 221 of file AP_WheelEncoder.cpp.
Referenced by num_sensors().
bool AP_WheelEncoder::healthy | ( | uint8_t | instance | ) | const |
Definition at line 189 of file AP_WheelEncoder.cpp.
Referenced by num_sensors().
void AP_WheelEncoder::init | ( | void | ) |
Definition at line 153 of file AP_WheelEncoder.cpp.
|
inline |
void AP_WheelEncoder::update | ( | void | ) |
|
friend |
Definition at line 32 of file AP_WheelEncoder.h.
|
friend |
Definition at line 33 of file AP_WheelEncoder.h.
Referenced by init().
|
protected |
Definition at line 100 of file AP_WheelEncoder.h.
Referenced by get_counts_per_revolution(), and get_delta_angle().
|
protected |
Definition at line 103 of file AP_WheelEncoder.h.
Referenced by AP_WheelEncoder_Backend::get_pin_a().
|
protected |
Definition at line 104 of file AP_WheelEncoder.h.
Referenced by AP_WheelEncoder_Backend::get_pin_b().
|
protected |
Definition at line 102 of file AP_WheelEncoder.h.
Referenced by get_position().
|
protected |
Definition at line 99 of file AP_WheelEncoder.h.
|
protected |
Definition at line 101 of file AP_WheelEncoder.h.
Referenced by get_distance(), and get_wheel_radius().
|
protected |
Definition at line 107 of file AP_WheelEncoder.h.
Referenced by AP_WheelEncoder(), init(), and update().
|
protected |
Definition at line 108 of file AP_WheelEncoder.h.
Referenced by enabled(), healthy(), init(), num_sensors(), and update().
|
protected |
Definition at line 106 of file AP_WheelEncoder.h.
Referenced by AP_WheelEncoder(), get_delta_angle(), get_error_count(), get_last_reading_ms(), get_signal_quality(), get_total_count(), and init().
|
static |
Definition at line 95 of file AP_WheelEncoder.h.
Referenced by AP_WheelEncoder().