From cae5668e647939d149dcdcffeb2bce6666da10db Mon Sep 17 00:00:00 2001 From: Eric Price Date: Tue, 28 Mar 2017 08:25:34 +0200 Subject: [PATCH] LP-500 Allow HoTT Telemetry on all USARTS (Rcvr, Flexi and Main) (trivial) --- .../targets/boards/revolution/firmware/pios_board.c | 12 +++++++++--- shared/uavobjectdefinition/hwsettings.xml | 8 ++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/flight/targets/boards/revolution/firmware/pios_board.c b/flight/targets/boards/revolution/firmware/pios_board.c index 5fd3343e7..e5294dc3e 100644 --- a/flight/targets/boards/revolution/firmware/pios_board.c +++ b/flight/targets/boards/revolution/firmware/pios_board.c @@ -632,6 +632,9 @@ void PIOS_Board_Init(void) } #endif /* PIOS_INCLUDE_HOTT */ break; + case HWSETTINGS_RM_FLEXIPORT_HOTTTELEMETRY: + PIOS_Board_configure_com(&pios_usart_hott_flexi_cfg, PIOS_COM_HOTT_RX_BUF_LEN, PIOS_COM_HOTT_TX_BUF_LEN, &pios_usart_com_driver, &pios_com_hott_id); + break; case HWSETTINGS_RM_FLEXIPORT_EXBUS: #if defined(PIOS_INCLUDE_EXBUS) @@ -844,6 +847,9 @@ void PIOS_Board_Init(void) } #endif /* PIOS_INCLUDE_DEBUG_CONSOLE */ break; + case HWSETTINGS_RM_MAINPORT_HOTTTELEMETRY: + PIOS_Board_configure_com(&pios_usart_main_cfg, PIOS_COM_HOTT_RX_BUF_LEN, PIOS_COM_HOTT_TX_BUF_LEN, &pios_usart_com_driver, &pios_com_hott_id); + break; case HWSETTINGS_RM_MAINPORT_COMBRIDGE: PIOS_Board_configure_com(&pios_usart_main_cfg, PIOS_COM_BRIDGE_RX_BUF_LEN, PIOS_COM_BRIDGE_TX_BUF_LEN, &pios_usart_com_driver, &pios_com_bridge_id); break; @@ -1048,7 +1054,7 @@ void PIOS_Board_Init(void) case HWSETTINGS_RM_RCVRPORT_PPMMSP: case HWSETTINGS_RM_RCVRPORT_PPMMAVLINK: case HWSETTINGS_RM_RCVRPORT_PPMGPS: - case HWSETTINGS_RM_RCVRPORT_PPMHOTT: + case HWSETTINGS_RM_RCVRPORT_PPMHOTTTELEMETRY: #if defined(PIOS_INCLUDE_PPM) PIOS_Board_configure_ppm(&pios_ppm_cfg); @@ -1098,8 +1104,8 @@ void PIOS_Board_Init(void) case HWSETTINGS_RM_RCVRPORT_PPMGPS: PIOS_Board_configure_com(&pios_usart_rcvrport_cfg, PIOS_COM_GPS_RX_BUF_LEN, PIOS_COM_GPS_TX_BUF_LEN, &pios_usart_com_driver, &pios_com_gps_id); break; - case HWSETTINGS_RM_RCVRPORT_HOTT: - case HWSETTINGS_RM_RCVRPORT_PPMHOTT: + case HWSETTINGS_RM_RCVRPORT_HOTTTELEMETRY: + case HWSETTINGS_RM_RCVRPORT_PPMHOTTTELEMETRY: PIOS_Board_configure_com(&pios_usart_rcvrport_cfg, PIOS_COM_HOTT_RX_BUF_LEN, PIOS_COM_HOTT_TX_BUF_LEN, &pios_usart_com_driver, &pios_com_hott_id); break; case HWSETTINGS_RM_RCVRPORT_IBUS: diff --git a/shared/uavobjectdefinition/hwsettings.xml b/shared/uavobjectdefinition/hwsettings.xml index a8ecde363..fed486c90 100644 --- a/shared/uavobjectdefinition/hwsettings.xml +++ b/shared/uavobjectdefinition/hwsettings.xml @@ -11,11 +11,11 @@ - - - + limits="%0905NE:PPM+PWM:PPM+Telemetry:PPM+DebugConsole:PPM+ComBridge:PPM+MSP:PPM+MAVLink:PPM+GPS:PPM+HoTT Telemetry:Telemetry:DebugConsole:ComBridge:MSP:MAVLink:GPS:HoTT Telemetry:IBus;"/> + +