AP_CANManager: added scripting2 protocol

allows for lua scripts to distinguish two CAN interfaces
This commit is contained in:
Andrew Tridgell 2022-07-02 12:22:51 +10:00
parent a7aa77ff86
commit 1b25babd8a
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ const AP_Param::GroupInfo AP_CANManager::CANDriver_Params::var_info[] = {
// @Param: PROTOCOL // @Param: PROTOCOL
// @DisplayName: Enable use of specific protocol over virtual driver // @DisplayName: Enable use of specific protocol over virtual driver
// @Description: Enabling this option starts selected protocol that will use this 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 // @User: Advanced
// @RebootRequired: True // @RebootRequired: True
AP_GROUPINFO("PROTOCOL", 1, AP_CANManager::CANDriver_Params, _driver_type, AP_CANManager::Driver_Type_UAVCAN), AP_GROUPINFO("PROTOCOL", 1, AP_CANManager::CANDriver_Params, _driver_type, AP_CANManager::Driver_Type_UAVCAN),

View File

@ -64,6 +64,7 @@ public:
// 9 was Driver_Type_MPPT_PacketDigital // 9 was Driver_Type_MPPT_PacketDigital
Driver_Type_Scripting = 10, Driver_Type_Scripting = 10,
Driver_Type_Benewake = 11, Driver_Type_Benewake = 11,
Driver_Type_Scripting2 = 12,
}; };
void init(void); void init(void);