Skip to content

Pan/Tilt/Zoom speeds reset to 5 every time we change cameras #13

@lrucker1

Description

@lrucker1

It looks like it's supposed to save the speeds, but every time we change cameras it's back to the defaults. I suspect this code in MainWindow::MainWindow but haven't actually been able to debug it. It's very annoying when we need to do some precise adjusting and forget to change them.

    ui->panSpeed->setCurrentIndex(4);
    for (int i = 0; i < 20; i++)
    {
        ui->tiltSpeed->addItem(QString::number(i + 1));
    }
    ui->tiltSpeed->setCurrentIndex(4);
    for (int i = 0; i < 8; i++)
    {
        ui->zoomSpeed->addItem(QString::number(i));
    }
    ui->zoomSpeed->setCurrentIndex(5);
    for (int i = 0; i < 8; i++)
    {
        ui->focusSpeed->addItem(QString::number(i));
    }
    ui->focusSpeed->setCurrentIndex(5);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions