AP_HAL_SITL: pass UARTs to AP_HAL in SERIALn order

This commit is contained in:
Thomas Watson 2023-12-10 11:15:39 -06:00 committed by Andrew Tridgell
parent 764b469e47
commit c56599e210

View File

@ -82,9 +82,9 @@ static Empty::WSPIDeviceManager wspi_mgr_instance;
HAL_SITL::HAL_SITL() : HAL_SITL::HAL_SITL() :
AP_HAL::HAL( AP_HAL::HAL(
&sitlUart0Driver, /* uartA */ &sitlUart0Driver, /* uartA */
&sitlUart1Driver, /* uartB */ &sitlUart2Driver, /* uartC */ // ordering captures the historical use of uartB as SERIAL3
&sitlUart2Driver, /* uartC */
&sitlUart3Driver, /* uartD */ &sitlUart3Driver, /* uartD */
&sitlUart1Driver, /* uartB */
&sitlUart4Driver, /* uartE */ &sitlUart4Driver, /* uartE */
&sitlUart5Driver, /* uartF */ &sitlUart5Driver, /* uartF */
&sitlUart6Driver, /* uartG */ &sitlUart6Driver, /* uartG */