AP_Vehicle: move AP_KDECAN to AP_Vehicle

ssss
This commit is contained in:
Tom Pittenger 2023-03-18 09:03:54 -07:00 committed by Andrew Tridgell
parent 8a530ee0a6
commit af2fc47b4d
2 changed files with 15 additions and 0 deletions

View File

@ -131,6 +131,12 @@ const AP_Param::GroupInfo AP_Vehicle::var_info[] = {
AP_SUBGROUPPTR(dds_client, "XRCE_", 18, AP_Vehicle, AP_DDS_Client), AP_SUBGROUPPTR(dds_client, "XRCE_", 18, AP_Vehicle, AP_DDS_Client),
#endif #endif
#if AP_KDECAN_ENABLED
// @Group: KDE_
// @Path: ../AP_KDECAN/AP_KDECAN.cpp
AP_SUBGROUPINFO(kdecan, "KDE_", 19, AP_Vehicle, AP_KDECAN),
#endif
AP_GROUPEND AP_GROUPEND
}; };
@ -283,6 +289,10 @@ void AP_Vehicle::setup()
temperature_sensor.init(); temperature_sensor.init();
#endif #endif
#if AP_KDECAN_ENABLED
kdecan.init();
#endif
#if AP_AIS_ENABLED #if AP_AIS_ENABLED
ais.init(); ais.init();
#endif #endif

View File

@ -59,6 +59,7 @@
#include <AC_Fence/AC_Fence.h> #include <AC_Fence/AC_Fence.h>
#include <AP_CheckFirmware/AP_CheckFirmware.h> #include <AP_CheckFirmware/AP_CheckFirmware.h>
#include <Filter/LowPassFilter.h> #include <Filter/LowPassFilter.h>
#include <AP_KDECAN/AP_KDECAN.h>
class AP_DDS_Client; class AP_DDS_Client;
@ -365,6 +366,10 @@ protected:
AP_NMEA_Output nmea; AP_NMEA_Output nmea;
#endif #endif
#if AP_KDECAN_ENABLED
AP_KDECAN kdecan;
#endif
#if AP_FENCE_ENABLED #if AP_FENCE_ENABLED
AC_Fence fence; AC_Fence fence;
#endif #endif