diff --git a/libraries/AP_Vehicle/AP_Vehicle.cpp b/libraries/AP_Vehicle/AP_Vehicle.cpp index 9a4f702a2d..b04cc282fc 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.cpp +++ b/libraries/AP_Vehicle/AP_Vehicle.cpp @@ -241,6 +241,11 @@ const AP_Param::GroupInfo AP_Vehicle::var_info[] = { #endif #endif // AP_NETWORKING_ENABLED +#if AP_FILTER_ENABLED + // @Group: FILT + // @Path: ../Filter/AP_Filter.cpp + AP_SUBGROUPINFO(filters, "FILT", 26, AP_Vehicle, AP_Filters), +#endif AP_GROUPEND }; @@ -419,6 +424,10 @@ void AP_Vehicle::setup() custom_rotations.init(); +#if AP_FILTER_ENABLED + filters.init(); +#endif + #if HAL_WITH_ESC_TELEM && HAL_GYROFFT_ENABLED for (uint8_t i = 0; i #include #include +#include class AP_DDS_Client; @@ -469,6 +470,9 @@ private: uint32_t _last_internal_errors; // backup of AP_InternalError::internal_errors bitmask AP_CustomRotations custom_rotations; +#if AP_FILTER_ENABLED + AP_Filters filters; +#endif // Bitmask of modes to disable from gcs AP_Int32 flight_mode_GCS_block;