From 586a073d33279429de89fcbc11744cd688bbdebf Mon Sep 17 00:00:00 2001 From: Brian Webb Date: Thu, 31 Aug 2017 17:42:25 -0700 Subject: [PATCH] LP-547 Increases the telemetry buffer lengths (both UART and radio) to fix saving large UAVObjects over OPLink. --- flight/modules/RadioComBridge/RadioComBridge.c | 1 - flight/pios/inc/pios_board_io.h | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/flight/modules/RadioComBridge/RadioComBridge.c b/flight/modules/RadioComBridge/RadioComBridge.c index 0ffa41bc8..1cd712656 100644 --- a/flight/modules/RadioComBridge/RadioComBridge.c +++ b/flight/modules/RadioComBridge/RadioComBridge.c @@ -55,7 +55,6 @@ #define RETRY_TIMEOUT_MS 20 #define EVENT_QUEUE_SIZE 10 #define MAX_PORT_DELAY 200 -#define SERIAL_RX_BUF_LEN 100 #define PPM_INPUT_TIMEOUT 100 #define PIOS_PPM_RECEIVER pios_rcvr_group_map[MANUALCONTROLSETTINGS_CHANNELGROUPS_PPM] diff --git a/flight/pios/inc/pios_board_io.h b/flight/pios/inc/pios_board_io.h index e174a2274..758051acc 100644 --- a/flight/pios/inc/pios_board_io.h +++ b/flight/pios/inc/pios_board_io.h @@ -91,10 +91,10 @@ extern uint32_t pios_com_telem_usb_id; extern uint32_t pios_com_telem_rf_id; #define PIOS_COM_TELEM_RF (pios_com_telem_rf_id) #ifndef PIOS_COM_TELEM_RF_RX_BUF_LEN -# define PIOS_COM_TELEM_RF_RX_BUF_LEN 128 +# define PIOS_COM_TELEM_RF_RX_BUF_LEN 256 #endif #ifndef PIOS_COM_TELEM_RF_TX_BUF_LEN -# define PIOS_COM_TELEM_RF_TX_BUF_LEN 128 +# define PIOS_COM_TELEM_RF_TX_BUF_LEN 256 #endif /* RFM22B telemetry */ @@ -106,16 +106,16 @@ extern uint32_t pios_com_aux_radio_id; /* oplink aux com stream */ # define PIOS_COM_PRI_RADIO (pios_com_pri_radio_id) # define PIOS_COM_AUX_RADIO (pios_com_aux_radio_id) # ifndef PIOS_COM_PRI_RADIO_RX_BUF_LEN -# define PIOS_COM_PRI_RADIO_RX_BUF_LEN 128 +# define PIOS_COM_PRI_RADIO_RX_BUF_LEN 256 # endif # ifndef PIOS_COM_PRI_RADIO_TX_BUF_LEN -# define PIOS_COM_PRI_RADIO_TX_BUF_LEN 128 +# define PIOS_COM_PRI_RADIO_TX_BUF_LEN 256 # endif # ifndef PIOS_COM_AUX_RADIO_RX_BUF_LEN -# define PIOS_COM_AUX_RADIO_RX_BUF_LEN 128 +# define PIOS_COM_AUX_RADIO_RX_BUF_LEN 256 # endif # ifndef PIOS_COM_AUX_RADIO_TX_BUF_LEN -# define PIOS_COM_AUX_RADIO_TX_BUF_LEN 128 +# define PIOS_COM_AUX_RADIO_TX_BUF_LEN 256 # endif #endif