|
|
@ -132,14 +132,9 @@ public: |
|
|
|
///
|
|
|
|
///
|
|
|
|
void set_motor_compensation(const Vector3f &motor_comp_factor); |
|
|
|
void set_motor_compensation(const Vector3f &motor_comp_factor); |
|
|
|
|
|
|
|
|
|
|
|
/// Set new motor compensation factors as a vector
|
|
|
|
/// get motor compensation factors as a vector
|
|
|
|
///
|
|
|
|
Vector3f& get_motor_compensation() { |
|
|
|
/// @param x multiplied by throttle value and added to the raw mag_x value.
|
|
|
|
return _motor_compensation; |
|
|
|
/// @param y multiplied by throttle value and added to the raw mag_y value.
|
|
|
|
|
|
|
|
/// @param z multiplied by throttle value and added to the raw mag_z value.
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
void set_motor_compensation(float x, float y, float z) { |
|
|
|
|
|
|
|
set_motor_compensation(Vector3f(x, y, z)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// Saves the current motor compensation x/y/z values.
|
|
|
|
/// Saves the current motor compensation x/y/z values.
|
|
|
|