From 1b25babd8ad4ad9b379ea069dd7572ddd00c602b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 2 Jul 2022 12:22:51 +1000 Subject: [PATCH] AP_CANManager: added scripting2 protocol allows for lua scripts to distinguish two CAN interfaces --- libraries/AP_CANManager/AP_CANDriver.cpp | 2 +- libraries/AP_CANManager/AP_CANManager.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_CANManager/AP_CANDriver.cpp b/libraries/AP_CANManager/AP_CANDriver.cpp index e4367bc18e..97bc7c82fc 100644 --- a/libraries/AP_CANManager/AP_CANDriver.cpp +++ b/libraries/AP_CANManager/AP_CANDriver.cpp @@ -31,7 +31,7 @@ const AP_Param::GroupInfo AP_CANManager::CANDriver_Params::var_info[] = { // @Param: PROTOCOL // @DisplayName: Enable use of specific protocol over virtual driver // @Description: Enabling this option starts selected protocol that will use this virtual driver - // @Values: 0:Disabled,1:DroneCAN,4:PiccoloCAN,5:CANTester,6:EFI_NWPMU,7:USD1,8:KDECAN,10:Scripting,11:Benewake + // @Values: 0:Disabled,1:DroneCAN,4:PiccoloCAN,5:CANTester,6:EFI_NWPMU,7:USD1,8:KDECAN,10:Scripting,11:Benewake,12:Scripting2 // @User: Advanced // @RebootRequired: True AP_GROUPINFO("PROTOCOL", 1, AP_CANManager::CANDriver_Params, _driver_type, AP_CANManager::Driver_Type_UAVCAN), diff --git a/libraries/AP_CANManager/AP_CANManager.h b/libraries/AP_CANManager/AP_CANManager.h index d2184dbcfa..ac04afc49d 100644 --- a/libraries/AP_CANManager/AP_CANManager.h +++ b/libraries/AP_CANManager/AP_CANManager.h @@ -64,6 +64,7 @@ public: // 9 was Driver_Type_MPPT_PacketDigital Driver_Type_Scripting = 10, Driver_Type_Benewake = 11, + Driver_Type_Scripting2 = 12, }; void init(void);