Skip to content

Commit

Permalink
[meteo_stick] fix interpolation function
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger committed Dec 2, 2015
1 parent f1494b6 commit 6a4e0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/airborne/modules/meteo/meteo_stick_calib.c
Expand Up @@ -284,7 +284,7 @@ float mtostk_apply_polynomial_temp(Sensors_params *params, float temp, float val
return mtostk_apply_polynomial(params->coeffs[params->num_temp - 1], params->num_coeff, value);
} else {
int i;
for (i = 0; i < params->num_temp - 2; i++) {
for (i = 0; i <= params->num_temp - 2; i++) {
const float t1 = params->temps[i];
const float t2 = params->temps[i + 1];
if (temp > t1 && temp <= t2) {
Expand Down

0 comments on commit 6a4e0fa

Please sign in to comment.