mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +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)
|
||||
{
|
||||
// \tilde{H}
|
||||
Vector3f centeredSamples[n_samples];
|
||||
Vector3f* centeredSamples = new Vector3f[n_samples];
|
||||
// z_k
|
||||
float sampleDeltaMag[n_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
|
||||
estimate += neg_increment;
|
||||
}
|
||||
delete[] centeredSamples;
|
||||
return estimate;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user