Commit c0f35565 authored by Clément Foucher's avatar Clément Foucher
Browse files

Fix incorrect array/pointer parameters.

parent c691b42d
......@@ -73,9 +73,9 @@ void data_conversion_adc1()
raw_values_adc1[i] = 0;
}
}
//Conversion to float for PID calculation
arm_mult_f32(&raw_values_adc1, &gain_adc1, &raw_values_mult_by_gain_adc1, 4);
arm_sub_f32(&raw_values_mult_by_gain_adc1, &offset_adc1, &converted_values_adc1, 4);
// Conversion to float for PID calculation
arm_mult_f32(raw_values_adc1, gain_adc1, raw_values_mult_by_gain_adc1, 4);
arm_sub_f32(raw_values_mult_by_gain_adc1, offset_adc1, converted_values_adc1, 4);
}
void data_conversion_adc2()
......@@ -92,9 +92,9 @@ void data_conversion_adc2()
raw_values_adc2[i] = 0;
}
}
//Conversion to float for PID calculation
arm_mult_f32(&raw_values_adc2, &gain_adc2, &raw_values_mult_by_gain_adc2, 3);
arm_sub_f32(&raw_values_mult_by_gain_adc2, &offset_adc2, &converted_values_adc2, 3);
// Conversion to float for PID calculation
arm_mult_f32(raw_values_adc2, gain_adc2, raw_values_mult_by_gain_adc2, 3);
arm_sub_f32(raw_values_mult_by_gain_adc2, offset_adc2, converted_values_adc2, 3);
}
/////
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment