AC_PID: include 0 in param range for filter index

This commit is contained in:
Iampete1
2026-08-22 21:38:02 +01:00
committed by Andy Piper
parent 4f581656cd
commit d3ba92df8f
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -86,15 +86,15 @@ const AP_Param::GroupInfo AC_HELI_PID::var_info[] = {
#if AP_FILTER_ENABLED
// @Param: NTF
// @DisplayName: PID Target notch filter index
// @Description: PID Target notch filter index
// @Range: 1 8
// @Description: PID Target notch filter index, zero disables
// @Range: 0 8
// @User: Advanced
AP_GROUPINFO("NTF", 15, AC_HELI_PID, _notch_T_filter, 0),
// @Param: NEF
// @DisplayName: PID Error notch filter index
// @Description: PID Error notch filter index
// @Range: 1 8
// @Description: PID Error notch filter index, zero disables
// @Range: 0 8
// @User: Advanced
AP_GROUPINFO("NEF", 16, AC_HELI_PID, _notch_E_filter, 0),
#endif
+2 -2
View File
@@ -83,14 +83,14 @@ const AP_Param::GroupInfo AC_PID::var_info[] = {
#if AP_FILTER_ENABLED
// @Param: NTF
// @DisplayName: PID Target notch filter index
// @Description: PID Target notch filter index
// @Description: PID Target notch filter index, zero disables
// @Range: 0 8
// @User: Advanced
AP_GROUPINFO("NTF", 15, AC_PID, _notch_T_filter, 0),
// @Param: NEF
// @DisplayName: PID Error notch filter index
// @Description: PID Error notch filter index
// @Description: PID Error notch filter index, zero disables
// @Range: 0 8
// @User: Advanced
AP_GROUPINFO("NEF", 16, AC_PID, _notch_E_filter, 0),