diff options
Diffstat (limited to 'apps/attitude_estimator_ekf/codegen/norm.c')
-rwxr-xr-x | apps/attitude_estimator_ekf/codegen/norm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/attitude_estimator_ekf/codegen/norm.c b/apps/attitude_estimator_ekf/codegen/norm.c index 97509a0c0..fa07e1a90 100755 --- a/apps/attitude_estimator_ekf/codegen/norm.c +++ b/apps/attitude_estimator_ekf/codegen/norm.c @@ -40,7 +40,7 @@ real32_T norm(const real32_T x[3]) firstNonZero = TRUE;
for (k = 0; k < 3; k++) {
if (x[k] != 0.0F) {
- absxk = (real32_T)fabs(x[k]);
+ absxk = (real32_T)fabsf(x[k]);
if (firstNonZero) {
scale = absxk;
y = 1.0F;
@@ -56,7 +56,7 @@ real32_T norm(const real32_T x[3]) }
}
- return scale * (real32_T)sqrt(y);
+ return scale * (real32_T)sqrtf(y);
}
/* End of code generation (norm.c) */
|