From a014bcb5bd7ee7d2f9101efc0c8e28f79f6625a4 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Mon, 14 Aug 2023 19:19:22 -0700 Subject: [PATCH] AP_RPM: Allow more instances --- libraries/AP_RPM/AP_RPM.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libraries/AP_RPM/AP_RPM.cpp b/libraries/AP_RPM/AP_RPM.cpp index 087dcabe291d4..30bfcedc60ef5 100644 --- a/libraries/AP_RPM/AP_RPM.cpp +++ b/libraries/AP_RPM/AP_RPM.cpp @@ -44,6 +44,18 @@ const AP_Param::GroupInfo AP_RPM::var_info[] = { AP_SUBGROUPINFO(_params[1], "2_", 15, AP_RPM, AP_RPM_Params), #endif +#if RPM_MAX_INSTANCES > 2 + // @Group: 3_ + // @Path: AP_RPM_Params.cpp + AP_SUBGROUPINFO(_params[2], "3_", 16, AP_RPM, AP_RPM_Params), +#endif + +#if RPM_MAX_INSTANCES > 3 + // @Group: 4_ + // @Path: AP_RPM_Params.cpp + AP_SUBGROUPINFO(_params[3], "4_", 17, AP_RPM, AP_RPM_Params), +#endif + AP_GROUPEND };