mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
AP_CANManager: Add APM_BUILD_Heli
This commit is contained in:
parent
a97cafbaad
commit
40f8407c1d
@ -42,7 +42,7 @@ const AP_Param::GroupInfo AP_CANManager::CANDriver_Params::var_info[] = {
|
||||
// @Path: ../AP_UAVCAN/AP_UAVCAN.cpp
|
||||
AP_SUBGROUPPTR(_uavcan, "UC_", 2, AP_CANManager::CANDriver_Params, AP_UAVCAN),
|
||||
|
||||
#if (APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_ArduSub))
|
||||
#if (APM_BUILD_COPTER_OR_HELI() || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_ArduSub))
|
||||
// @Group: KDE_
|
||||
// @Path: ../AP_KDECAN/AP_KDECAN.cpp
|
||||
AP_SUBGROUPPTR(_kdecan, "KDE_", 3, AP_CANManager::CANDriver_Params, AP_KDECAN),
|
||||
|
@ -205,7 +205,7 @@ void AP_CANManager::init()
|
||||
|
||||
AP_Param::load_object_from_eeprom((AP_UAVCAN*)_drivers[drv_num], AP_UAVCAN::var_info);
|
||||
} else if (drv_type[drv_num] == Driver_Type_KDECAN) {
|
||||
#if (APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_ArduSub))
|
||||
#if (APM_BUILD_COPTER_OR_HELI() || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_ArduSub))
|
||||
// To be replaced with macro saying if KDECAN library is included
|
||||
_drivers[drv_num] = _drv_param[drv_num]._kdecan = new AP_KDECAN;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user