genesys: Improve motor tables on OpticFilm 7300

merge-requests/340/head
Povilas Kanapickas 2020-02-01 14:23:03 +02:00
rodzic 8b3b85c160
commit f3f0143500
2 zmienionych plików z 14 dodań i 2 usunięć

Wyświetl plik

@ -797,6 +797,7 @@ static bool should_use_new_fast_table(const Genesys_Device& dev)
case ModelId::CANON_8600F:
case ModelId::CANON_8400F:
case ModelId::PLUSTEK_OPTICFILM_7200I:
case ModelId::PLUSTEK_OPTICFILM_7300:
return true;
default:
return false;

Wyświetl plik

@ -425,8 +425,19 @@ void genesys_init_motor_tables()
motor.id = MotorId::PLUSTEK_OPTICFILM_7300;
motor.base_ydpi = 3600;
motor.optical_ydpi = 3600;
motor.profiles.push_back({MotorSlope::create_from_steps(31250, 1512, 6),
StepType::QUARTER, 12100});
profile = MotorProfile();
profile.slope = MotorSlope::create_from_steps(56818 * 4, 454 * 4, 30);
profile.step_type = StepType::QUARTER;
profile.motor_vref = 3;
motor.profiles.push_back(std::move(profile));
profile = MotorProfile();
profile.slope = MotorSlope::create_from_steps(56818 * 4, 454 * 4, 30);
profile.step_type = StepType::QUARTER;
profile.motor_vref = 0;
motor.fast_profiles.push_back(std::move(profile));
s_motors->push_back(std::move(motor));