mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-05 21:52:10 +01:00
Merge remote-tracking branch 'origin/voha/fix_build_error_with_clang' into next
Conflicts: ground/openpilotgcs/src/plugins/ophid/ophid.pro
This commit is contained in:
commit
08ce27a6d6
@ -126,7 +126,7 @@ Vector3f twostep_bias_only(const Vector3f samples[],
|
|||||||
const float noise)
|
const float noise)
|
||||||
{
|
{
|
||||||
// \tilde{H}
|
// \tilde{H}
|
||||||
Vector3f centeredSamples[n_samples];
|
Vector3f* centeredSamples = new Vector3f[n_samples];
|
||||||
// z_k
|
// z_k
|
||||||
float sampleDeltaMag[n_samples];
|
float sampleDeltaMag[n_samples];
|
||||||
// eq 7 and 8 applied to samples
|
// eq 7 and 8 applied to samples
|
||||||
@ -172,6 +172,7 @@ Vector3f twostep_bias_only(const Vector3f samples[],
|
|||||||
// Note that the negative has been done twice
|
// Note that the negative has been done twice
|
||||||
estimate += neg_increment;
|
estimate += neg_increment;
|
||||||
}
|
}
|
||||||
|
delete[] centeredSamples;
|
||||||
return estimate;
|
return estimate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user