mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
SRV_Channel: add ToshibaCAN
This commit is contained in:
parent
a37c86af6e
commit
368fd4b8db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user