mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
LP-490 cosmetic code cleanup
This commit is contained in:
parent
14d935a6dd
commit
e9a0e3ad69
@ -380,7 +380,6 @@ static filterResult filter(stateFilter *self, stateEstimation *state)
|
||||
rotvec[1] *= -this->magLockAlpha;
|
||||
rotvec[2] *= -this->magLockAlpha;
|
||||
// 3. rotate artificial magnetometer reading from straight down to correct roll+pitch
|
||||
// rot_mult(R, (const float[3]) { 0, 0, VectorMagnitude(this->work.mag) }, this->work.mag);
|
||||
Rv2Rot(rotvec, R);
|
||||
float MagStrength = VectorMagnitude(this->homeLocation.Be);
|
||||
local_down[0] *= MagStrength;
|
||||
|
Loading…
x
Reference in New Issue
Block a user