Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/libraries/AP_CANManager/AP_CANManager_CANDriver_Params.cpp
Views: 1798
/*1* This program is free software: you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation, either version 3 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program. If not, see <http://www.gnu.org/licenses/>.13*/1415#include <AP_HAL/AP_HAL.h>1617#if HAL_MAX_CAN_PROTOCOL_DRIVERS && HAL_CANMANAGER_ENABLED18#include "AP_CANManager.h"1920#include <AP_DroneCAN/AP_DroneCAN.h>21#include <AP_PiccoloCAN/AP_PiccoloCAN.h>2223// table of user settable CAN bus parameters24const AP_Param::GroupInfo AP_CANManager::CANDriver_Params::var_info[] = {2526// @Param: PROTOCOL27// @DisplayName: Enable use of specific protocol over virtual driver28// @Description: Enabling this option starts selected protocol that will use this virtual driver29// @SortValues: AlphabeticalZeroAtTop30// @Values: 0:Disabled,1:DroneCAN,4:PiccoloCAN,6:EFI_NWPMU,7:USD1,8:KDECAN,10:Scripting,11:Benewake,12:Scripting2,13:TOFSenseP,14:NanoRadar31// @User: Advanced32// @RebootRequired: True33AP_GROUPINFO("PROTOCOL", 1, AP_CANManager::CANDriver_Params, _driver_type, float(AP_CAN::Protocol::DroneCAN)),3435#if HAL_ENABLE_DRONECAN_DRIVERS36// @Group: UC_37// @Path: ../AP_DroneCAN/AP_DroneCAN.cpp38AP_SUBGROUPPTR(_uavcan, "UC_", 2, AP_CANManager::CANDriver_Params, AP_DroneCAN),39#endif4041// index 3 was KDECAN4243// index 4 was CANTester4445#if HAL_PICCOLO_CAN_ENABLE46// @Group: PC_47// @Path: ../AP_PiccoloCAN/AP_PiccoloCAN.cpp48AP_SUBGROUPPTR(_piccolocan, "PC_", 5, AP_CANManager::CANDriver_Params, AP_PiccoloCAN),49#endif5051// @Param: PROTOCOL252// @DisplayName: Secondary protocol with 11 bit CAN addressing53// @Description: Secondary protocol with 11 bit CAN addressing54// @SortValues: AlphabeticalZeroAtTop55// @Values: 0:Disabled,7:USD1,10:Scripting,11:Benewake,12:Scripting2,13:TOFSenseP,14:NanoRadar56// @User: Advanced57// @RebootRequired: True58AP_GROUPINFO("PROTOCOL2", 6, AP_CANManager::CANDriver_Params, _driver_type_11bit, float(AP_CAN::Protocol::None)),5960AP_GROUPEND61};62#endif636465