1
0
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:
James Cotton 2012-08-24 22:35:21 -05:00
parent a3f1894cd7
commit 59d1367d37

View File

@ -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 ****/