void CalculateVelocityHandler::GetEventPVelRange(float &start, float &end, float &step)
{
    AppSettings setting = ConfigManager::GetInstance()->AppSetting();
    start = setting.p_start();
    end = setting.p_end();
    step = setting.p_step();
}
void VelParaSetupHandler::GetPSVelSetupUiData(PSVelSetupPara &para)
{
    AppSettings setting = ConfigManager::GetInstance()->AppSetting();

    para.p_start = setting.p_start();
    para.p_end = setting.p_end();
    para.s_start = setting.s_start();
    para.s_end = setting.s_end();
    para.plus_per = setting.plus_per();
    para.minus_per = setting.minus_per();
    para.layer_info = setting.layer_info();
    para.p_step = setting.p_step();
    para.s_step = setting.s_step();
    para.p_divide_by_s = setting.p_divide_by_s();
}
bool CalculateVelocityHandler::GetChannelPVelRange(float &start, float &end, float &step)
{
    AppSettings setting = ConfigManager::GetInstance()->AppSetting();

    float p_vel;
    float s_vel;

    if (!GetEventAdjustVel(p_vel, s_vel))
    {
        return false;
    }
    start = p_vel * (100 + setting.minus_per()) / 100;
    end = p_vel * (100 + setting.plus_per()) / 100;
    step = setting.p_step();

    return true;
}