|
|
@ -21,6 +21,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include <AP_UAVCAN/AP_UAVCAN.h> |
|
|
|
#include <AP_UAVCAN/AP_UAVCAN.h> |
|
|
|
#include <AP_ToshibaCAN/AP_ToshibaCAN.h> |
|
|
|
#include <AP_ToshibaCAN/AP_ToshibaCAN.h> |
|
|
|
|
|
|
|
#include <AP_PiccoloCAN/AP_PiccoloCAN.h> |
|
|
|
|
|
|
|
|
|
|
|
// To be replaced with macro saying if KDECAN library is included
|
|
|
|
// To be replaced with macro saying if KDECAN library is included
|
|
|
|
#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_ArduSub) |
|
|
|
#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_ArduSub) |
|
|
@ -32,8 +33,8 @@ const AP_Param::GroupInfo AP_BoardConfig_CAN::Driver::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{Copter,Plane,Sub}: 0:Disabled,1:UAVCAN,2:KDECAN,3:ToshibaCAN
|
|
|
|
// @Values{Copter,Plane,Sub}: 0:Disabled,1:UAVCAN,2:KDECAN,3:ToshibaCAN,4:PiccoloCAN
|
|
|
|
// @Values: 0:Disabled,1:UAVCAN,3:ToshibaCAN
|
|
|
|
// @Values: 0:Disabled,1:UAVCAN,3:ToshibaCAN,4:PiccoloCAN
|
|
|
|
// @User: Advanced
|
|
|
|
// @User: Advanced
|
|
|
|
// @RebootRequired: True
|
|
|
|
// @RebootRequired: True
|
|
|
|
AP_GROUPINFO("PROTOCOL", 1, AP_BoardConfig_CAN::Driver, _protocol_type, AP_BoardConfig_CAN::Protocol_Type_UAVCAN), |
|
|
|
AP_GROUPINFO("PROTOCOL", 1, AP_BoardConfig_CAN::Driver, _protocol_type, AP_BoardConfig_CAN::Protocol_Type_UAVCAN), |
|
|
|