<commit_before>#include "OsdConfig.h"
#include <QMessageBox>

OsdConfig::OsdConfig(QWidget *parent) : AP2ConfigWidget(parent)
{
    ui.setupUi(this);
    connect(ui.enablePushButton,SIGNAL(clicked()),this,SLOT(enableButtonClicked()));
}

OsdConfig::~OsdConfig()
{
}
void OsdConfig::enableButtonClicked()
{
    if (!m_uas)
    {
        showNullMAVErrorMessageBox();
        return;
    }
    m_uas->getParamManager()->setParameter(1,"SR0_EXT_STAT",2);
    m_uas->getParamManager()->setParameter(1,"SR0_EXTRA1",10);
    m_uas->getParamManager()->setParameter(1,"SR0_EXTRA2",10);
    m_uas->getParamManager()->setParameter(1,"SR0_EXTRA3",2);
    m_uas->getParamManager()->setParameter(1,"SR0_POSITION",3);
    m_uas->getParamManager()->setParameter(1,"SR0_RAW_CTRL",2);
    m_uas->getParamManager()->setParameter(1,"SR0_RAW_SENS",2);
    m_uas->getParamManager()->setParameter(1,"SR0_RC_CHAN",2);

    m_uas->getParamManager()->setParameter(1,"SR3_EXT_STAT",2);
    m_uas->getParamManager()->setParameter(1,"SR3_EXTRA1",10);
    m_uas->getParamManager()->setParameter(1,"SR3_EXTRA2",10);
    m_uas->getParamManager()->setParameter(1,"SR3_EXTRA3",2);
    m_uas->getParamManager()->setParameter(1,"SR3_POSITION",3);
    m_uas->getParamManager()->setParameter(1,"SR3_RAW_CTRL",2);
    m_uas->getParamManager()->setParameter(1,"SR3_RAW_SENS",2);
    m_uas->getParamManager()->setParameter(1,"SR3_RC_CHAN",2);
}
<commit_msg>Change so OsdConfig only sends requests to start telemetry on a single serial port<commit_after>#include "OsdConfig.h"
#include <QMessageBox>

OsdConfig::OsdConfig(QWidget *parent) : AP2ConfigWidget(parent)
{
    ui.setupUi(this);
    connect(ui.enablePushButton,SIGNAL(clicked()),this,SLOT(enableButtonClicked()));
}

OsdConfig::~OsdConfig()
{
}
void OsdConfig::enableButtonClicked()
{
    if (!m_uas)
    {
        showNullMAVErrorMessageBox();
        return;
    }
    m_uas->getParamManager()->setParameter(1,"SR0_EXT_STAT",2);
    m_uas->getParamManager()->setParameter(1,"SR0_EXTRA1",10);
    m_uas->getParamManager()->setParameter(1,"SR0_EXTRA2",10);
    m_uas->getParamManager()->setParameter(1,"SR0_EXTRA3",2);
    m_uas->getParamManager()->setParameter(1,"SR0_POSITION",3);
    m_uas->getParamManager()->setParameter(1,"SR0_RAW_CTRL",2);
    m_uas->getParamManager()->setParameter(1,"SR0_RAW_SENS",2);
    m_uas->getParamManager()->setParameter(1,"SR0_RC_CHAN",2);
}

{'fraction_non_alphanumeric': 0.1812108559498956, 'fraction_numerical': 0.037160751565762005, 'mean_word_length': 6.606349206349206, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7466556', 'n_tokens_mistral': 922, 'n_tokens_neox': 913, 'n_words': 69}