Пример #1
0
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();
}
Пример #2
0
bool CalculateVelocityHandler::GetChannelSVelRange(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 = s_vel * (100 + setting.minus_per()) / 100;
    end = s_vel * (100 + setting.plus_per()) / 100;
    step = setting.s_step();

    return true;
}