mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
Add inline to avoid double definition errors
This commit is contained in:
committed by
Lorenz Meier
parent
c79bd033c0
commit
a9fc104387
@@ -54,9 +54,9 @@
|
|||||||
*
|
*
|
||||||
* @return 0 on success, 1 on failure
|
* @return 0 on success, 1 on failure
|
||||||
*/
|
*/
|
||||||
int run_lm_sphere_fit(const float x[], const float y[], const float z[], float &_fitness, float &_sphere_lambda,
|
inline int run_lm_sphere_fit(const float x[], const float y[], const float z[], float &_fitness, float &_sphere_lambda,
|
||||||
unsigned int samples_collected, float *offset_x, float *offset_y, float *offset_z,
|
unsigned int samples_collected, float *offset_x, float *offset_y, float *offset_z,
|
||||||
float *sphere_radius, float *diag_x, float *diag_y, float *diag_z, float *offdiag_x, float *offdiag_y, float *offdiag_z)
|
float *sphere_radius, float *diag_x, float *diag_y, float *diag_z, float *offdiag_x, float *offdiag_y, float *offdiag_z)
|
||||||
{
|
{
|
||||||
// Run Sphere Fit using Levenberg Marquardt LSq Fit
|
// Run Sphere Fit using Levenberg Marquardt LSq Fit
|
||||||
const float lma_damping = 10.f;
|
const float lma_damping = 10.f;
|
||||||
@@ -178,9 +178,9 @@ int run_lm_sphere_fit(const float x[], const float y[], const float z[], float &
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int run_lm_ellipsoid_fit(const float x[], const float y[], const float z[], float &_fitness, float &_sphere_lambda,
|
inline int run_lm_ellipsoid_fit(const float x[], const float y[], const float z[], float &_fitness,
|
||||||
unsigned int samples_collected, float *offset_x, float *offset_y, float *offset_z,
|
float &_sphere_lambda, unsigned int samples_collected, float *offset_x, float *offset_y, float *offset_z,
|
||||||
float *sphere_radius, float *diag_x, float *diag_y, float *diag_z, float *offdiag_x, float *offdiag_y, float *offdiag_z)
|
float *sphere_radius, float *diag_x, float *diag_y, float *diag_z, float *offdiag_x, float *offdiag_y, float *offdiag_z)
|
||||||
{
|
{
|
||||||
// Run Sphere Fit using Levenberg Marquardt LSq Fit
|
// Run Sphere Fit using Levenberg Marquardt LSq Fit
|
||||||
const float lma_damping = 10.0f;
|
const float lma_damping = 10.0f;
|
||||||
|
|||||||
Reference in New Issue
Block a user