mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Compass: add get_motor_compensation
Remove redundant set_motor_compensation call
This commit is contained in:
parent
987cdaf3e1
commit
e113eb526b
@ -132,14 +132,9 @@ public:
|
||||
///
|
||||
void set_motor_compensation(const Vector3f &motor_comp_factor);
|
||||
|
||||
/// Set new motor compensation factors as a vector
|
||||
///
|
||||
/// @param x multiplied by throttle value and added to the raw mag_x value.
|
||||
/// @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));
|
||||
/// get motor compensation factors as a vector
|
||||
Vector3f& get_motor_compensation() {
|
||||
return _motor_compensation;
|
||||
}
|
||||
|
||||
/// Saves the current motor compensation x/y/z values.
|
||||
|
Loading…
Reference in New Issue
Block a user