mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
AP_CANManager: disable CANTester by default
This commit is contained in:
parent
47dd964e63
commit
c0188fbf0e
@ -47,7 +47,7 @@ const AP_Param::GroupInfo AP_CANManager::CANDriver_Params::var_info[] = {
|
||||
AP_SUBGROUPPTR(_kdecan, "KDE_", 3, AP_CANManager::CANDriver_Params, AP_KDECAN),
|
||||
#endif
|
||||
|
||||
#if HAL_NUM_CAN_IFACES > 1 && !HAL_MINIMIZE_FEATURES
|
||||
#if HAL_NUM_CAN_IFACES > 1 && !HAL_MINIMIZE_FEATURES && HAL_ENABLE_CANTESTER
|
||||
// @Group: TST_
|
||||
// @Path: ../AP_CANManager/AP_CANTester.cpp
|
||||
AP_SUBGROUPPTR(_testcan, "TST_", 4, AP_CANManager::CANDriver_Params, CANTester),
|
||||
|
@ -234,7 +234,7 @@ void AP_CANManager::init()
|
||||
AP_Param::load_object_from_eeprom((AP_PiccoloCAN*)_drivers[drv_num], AP_PiccoloCAN::var_info);
|
||||
#endif
|
||||
} else if (drv_type[drv_num] == Driver_Type_CANTester) {
|
||||
#if HAL_NUM_CAN_IFACES > 1 && !HAL_MINIMIZE_FEATURES
|
||||
#if HAL_NUM_CAN_IFACES > 1 && !HAL_MINIMIZE_FEATURES && HAL_ENABLE_CANTESTER
|
||||
_drivers[drv_num] = _drv_param[drv_num]._testcan = new CANTester;
|
||||
|
||||
if (_drivers[drv_num] == nullptr) {
|
||||
|
@ -20,8 +20,8 @@
|
||||
#include <AP_Common/AP_Common.h>
|
||||
|
||||
#include "AP_CANManager.h"
|
||||
#if HAL_MAX_CAN_PROTOCOL_DRIVERS > 1 && !HAL_MINIMIZE_FEATURES && HAL_CANMANAGER_ENABLED
|
||||
#include "AP_CANTester.h"
|
||||
#if HAL_MAX_CAN_PROTOCOL_DRIVERS > 1 && !HAL_MINIMIZE_FEATURES && HAL_CANMANAGER_ENABLED && HAL_ENABLE_CANTESTER
|
||||
#include <AP_SerialManager/AP_SerialManager.h>
|
||||
#include <stdio.h>
|
||||
#include <AP_Vehicle/AP_Vehicle.h>
|
||||
|
@ -18,7 +18,11 @@
|
||||
#include "AP_CANDriver.h"
|
||||
#include <AP_HAL/Semaphores.h>
|
||||
#include <AP_UAVCAN/AP_UAVCAN.h>
|
||||
#if HAL_MAX_CAN_PROTOCOL_DRIVERS > 1 && !HAL_MINIMIZE_FEATURES && HAL_CANMANAGER_ENABLED
|
||||
#ifndef HAL_ENABLE_CANTESTER
|
||||
#define HAL_ENABLE_CANTESTER 0
|
||||
#endif
|
||||
|
||||
#if HAL_MAX_CAN_PROTOCOL_DRIVERS > 1 && !HAL_MINIMIZE_FEATURES && HAL_CANMANAGER_ENABLED && HAL_ENABLE_CANTESTER
|
||||
|
||||
class CANTester : public AP_CANDriver
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user