|
|
@ -77,8 +77,8 @@ public: |
|
|
|
// get the wheel radius in meters
|
|
|
|
// get the wheel radius in meters
|
|
|
|
float get_wheel_radius(uint8_t instance) const; |
|
|
|
float get_wheel_radius(uint8_t instance) const; |
|
|
|
|
|
|
|
|
|
|
|
// get the position of the wheel associated with the wheel encoder
|
|
|
|
// return a 3D vector defining the position offset of the center of the wheel in meters relative to the body frame origin
|
|
|
|
Vector3f get_position(uint8_t instance) const; |
|
|
|
const Vector3f &get_pos_offset(uint8_t instance) const; |
|
|
|
|
|
|
|
|
|
|
|
// get total delta angle (in radians) measured by the wheel encoder
|
|
|
|
// get total delta angle (in radians) measured by the wheel encoder
|
|
|
|
float get_delta_angle(uint8_t instance) const; |
|
|
|
float get_delta_angle(uint8_t instance) const; |
|
|
@ -115,4 +115,5 @@ protected: |
|
|
|
WheelEncoder_State state[WHEELENCODER_MAX_INSTANCES]; |
|
|
|
WheelEncoder_State state[WHEELENCODER_MAX_INSTANCES]; |
|
|
|
AP_WheelEncoder_Backend *drivers[WHEELENCODER_MAX_INSTANCES]; |
|
|
|
AP_WheelEncoder_Backend *drivers[WHEELENCODER_MAX_INSTANCES]; |
|
|
|
uint8_t num_instances; |
|
|
|
uint8_t num_instances; |
|
|
|
|
|
|
|
Vector3f pos_offset_zero; // allows returning position offsets of zero for invalid requests
|
|
|
|
}; |
|
|
|
}; |
|
|
|