AP_SerialManager: define port ranges for CAN serial ports

This commit is contained in:
Andrew Tridgell 2023-11-19 07:35:19 +11:00
parent 68f5c7b4dc
commit a54503ae12
1 changed files with 5 additions and 0 deletions

View File

@ -158,6 +158,11 @@
// 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_*
// 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 {
public:
AP_SerialManager();