else if(curve_mode == TFREE && control_in_position && control_out_position) {
float gl = control_in_value / control_in_position;
float gr = control_out_value / control_out_position;
float wl = fabs(control_in_value);
float wr = fabs(control_out_value);
float g = weighted_mean(gl, gr, wl, wr);
else if(curve_mode == TFREE && control_in_position && control_out_position) {
float gl = control_in_value / control_in_position;
float gr = control_out_value / control_out_position;
float wl = fabs(control_in_value);
float wr = fabs(control_out_value);
float g = weighted_mean(gl, gr, wl, wr);