Commit Graph

14 Commits

Author SHA1 Message Date
Leonard Hall
8d08a5d4bd AC_AutoTune: fix restoring of original gains
current_gain_type was not being set when load_gains was called meaning subsequent calls to load_gains would fail if gain_type was GAIN_ORIGINAL
2020-02-05 10:51:31 +11:00
Peter Hall
a0d8c04f3e AC_AutoTune: add public reset method 2019-05-07 09:23:50 +10:00
Peter Barker
020aa6bd49 AC_AutoTune: emit a warning every second while pilot overrides active 2019-03-18 09:35:52 +09:00
Peter Barker
87d05d843e AC_AutoTune: restrict scoping of LEVEL_ISSUE enum
This gives us tighter type-checking and scoping
2019-03-01 12:21:01 +11:00
Peter Barker
247a047177 AC_AutoTune: avoid int32_t<->float conversions
We're currently bouncing backwards and forwards between types.  Just
choose one!
2019-03-01 12:09:58 +11:00
Andrew Tridgell
e279fde505 AC_AutoTune: log 3 axis PIDs during twitch 2018-12-22 15:10:23 +11:00
Andrew Tridgell
be9be889db AC_AutoTune: ensure we always have the right gains loaded 2018-12-22 15:10:23 +11:00
Leonard Hall
ce27eb5de1 AC_Autotune: Reduce rate step for over angle abort 2018-12-22 15:10:23 +11:00
Andrew Tridgell
6312a88d90 AC_Autotune: fixed waiting for level timeout 2018-12-21 22:17:52 +11:00
Leonard Hall
b25f7a38e8 AC_Autotune: Include FF variable 2018-12-21 22:17:52 +11:00
Leonard Hall
b0f3674eee AC_Autotune: Add level time out. 2018-12-21 22:17:52 +11:00
Andrew Tridgell
2277f70456 AC_AutoTune: allow save of completed axes
this allows you to stop the tune by disarming part way through and
save the completed axes
2018-12-18 18:56:10 +09:00
Andrew Tridgell
d90edcbb1d AC_AutoTune: fixed time subtraction bug
would have failed at time wrap point
2018-12-14 16:33:11 +11:00
Andrew Tridgell
47265c6fb7 AC_AutoTune: converted autotune mode to a library
this allows for common code between copter and quadplanes
2018-12-14 16:33:11 +11:00