Hello,
I want to add an sqrt function that transforms the motor output signal.
Background:
I want to control the thrust force of the motor, which is proportional to the square
of the rpm value. The range of the value should be between 0 and 1 such that the minimal and max
value is not changed.
I tried to add the following code at the end of the function float ProcessMixer(...) in line 611 of actuator.c:
if (result < 0.0f) {
return result;
} else {
return sqrt(result);
}
// was return result;
This did not have the desired effect. What is a good location in the source code to do this kind of transformation?
Uwe