SRV_Channel: add ToshibaCAN

This commit is contained in:
Randy Mackay 2019-01-15 14:24:20 +09:00 committed by Andrew Tridgell
parent a37c86af6e
commit 368fd4b8db

View File

@ -30,6 +30,7 @@
#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_ArduSub)
#include <AP_KDECAN/AP_KDECAN.h>
#endif
#include <AP_ToshibaCAN/AP_ToshibaCAN.h>
#endif
extern const AP_HAL::HAL& hal;
@ -271,6 +272,14 @@ void SRV_Channels::push()
break;
#endif
}
case AP_BoardConfig_CAN::Protocol_Type_ToshibaCAN: {
AP_ToshibaCAN *ap_tcan = AP_ToshibaCAN::get_tcan(i);
if (ap_tcan == nullptr) {
continue;
}
ap_tcan->update();
break;
}
case AP_BoardConfig_CAN::Protocol_Type_None:
default:
break;