mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Autotuning: Make the output also follow the hysteresis output
This commit is contained in:
parent
a3f1894cd7
commit
59d1367d37
@ -93,7 +93,7 @@ int stabilization_relay_rate(float error, float *output, int axis, bool reinit)
|
||||
RelayTuningSettingsGet(&relaySettings);
|
||||
|
||||
// Compute output, simple threshold on error
|
||||
*output = error > 0 ? relaySettings.Amplitude : -relaySettings.Amplitude;
|
||||
*output = high ? relaySettings.Amplitude : -relaySettings.Amplitude;
|
||||
|
||||
/**** The code below here is to estimate the properties of the oscillation ****/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user