mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_SerialManager: define port ranges for CAN serial ports
This commit is contained in:
parent
68f5c7b4dc
commit
a54503ae12
@ -158,6 +158,11 @@
|
|||||||
// serial ports registered by AP_Networking will use IDs starting at 21 for the first port
|
// serial ports registered by AP_Networking will use IDs starting at 21 for the first port
|
||||||
#define AP_SERIALMANAGER_NET_PORT_1 21 // NET_P1_*
|
#define AP_SERIALMANAGER_NET_PORT_1 21 // NET_P1_*
|
||||||
|
|
||||||
|
// serial ports registered by AP_DroneCAN will use IDs starting at 41/51 for the first port
|
||||||
|
#define AP_SERIALMANAGER_CAN_D1_PORT_1 41 // CAN_D1_UC_S1_*
|
||||||
|
#define AP_SERIALMANAGER_CAN_D2_PORT_1 51 // CAN_D2_UC_S1_*
|
||||||
|
|
||||||
|
|
||||||
class AP_SerialManager {
|
class AP_SerialManager {
|
||||||
public:
|
public:
|
||||||
AP_SerialManager();
|
AP_SerialManager();
|
||||||
|
Loading…
Reference in New Issue
Block a user