kopia lustrzana https://gitlab.com/sane-project/backends
Canon LiDE 100 motor tuning
rodzic
81ae37a603
commit
a4edddf523
|
@ -1,3 +1,7 @@
|
||||||
|
2010-06-07 Stéphane Voltz <stef.dev@free.fr>
|
||||||
|
* backend/genesys.c backend/genesys_devices.c backend/genesys_gl847.c:
|
||||||
|
LiDE 100 motor fine tuning
|
||||||
|
|
||||||
2010-06-03 Stéphane Voltz <stef.dev@free.fr>
|
2010-06-03 Stéphane Voltz <stef.dev@free.fr>
|
||||||
* backend/genesys.c backend/genesys_devices.c backend/genesys_gl847.c
|
* backend/genesys.c backend/genesys_devices.c backend/genesys_gl847.c
|
||||||
doc/descriptions/genesys.desc:
|
doc/descriptions/genesys.desc:
|
||||||
|
|
|
@ -786,8 +786,8 @@ static Genesys_Motor Motor[] = {
|
||||||
1, /* maximum power modes count */
|
1, /* maximum power modes count */
|
||||||
{ /* motor slopes */
|
{ /* motor slopes */
|
||||||
{ /* power mode 0 */
|
{ /* power mode 0 */
|
||||||
{ 2034, 800, 80, 0.50}, /* full step */
|
{ 2034, 900, 80, 0.50}, /* full step */
|
||||||
{ 8136, 3200, 80, 0.50}, /* half step */
|
{ 8136, 1800, 80, 0.30}, /* half step */
|
||||||
{ 3*2712, 3*2712, 16, 0.80}, /* quarter step 0.75*2712 */
|
{ 3*2712, 3*2712, 16, 0.80}, /* quarter step 0.75*2712 */
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -927,8 +927,8 @@ static Genesys_Model canon_lide_100_model = {
|
||||||
GENESYS_GL847,
|
GENESYS_GL847,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
||||||
{1200, 600, 300, 150, 100, 75, 0}, /* possible x-resolutions */
|
{1200, 600, 300, 200, 100, 75, 0}, /* possible x-resolutions */
|
||||||
{1200, 600, 300, 150, 100, 75, 0}, /* possible y-resolutions */
|
{1200, 600, 300, 200, 100, 75, 0}, /* possible y-resolutions */
|
||||||
{16, 8, 0}, /* possible depths in gray mode */
|
{16, 8, 0}, /* possible depths in gray mode */
|
||||||
{16, 8, 0}, /* possible depths in color mode */
|
{16, 8, 0}, /* possible depths in color mode */
|
||||||
|
|
||||||
|
|
|
@ -1830,9 +1830,9 @@ independent of our calculated values:
|
||||||
slope_dpi = slope_dpi * (1 + dummy);
|
slope_dpi = slope_dpi * (1 + dummy);
|
||||||
|
|
||||||
/* scan_step_type */
|
/* scan_step_type */
|
||||||
if (yres * 4 < dev->motor.base_ydpi || dev->motor.max_step_type <= 0)
|
if (slope_dpi * 4 <= dev->motor.base_ydpi || dev->motor.max_step_type <= 0)
|
||||||
scan_step_type = 0;
|
scan_step_type = 0;
|
||||||
else if (yres * 4 < dev->motor.base_ydpi * 2
|
else if (slope_dpi * 4 <= dev->motor.base_ydpi * 2
|
||||||
|| dev->motor.max_step_type <= 1)
|
|| dev->motor.max_step_type <= 1)
|
||||||
scan_step_type = 1;
|
scan_step_type = 1;
|
||||||
else
|
else
|
||||||
|
@ -3442,7 +3442,7 @@ gl847_init_regs_for_scan (Genesys_Device * dev)
|
||||||
DBG (DBG_info, "gl847_init_regs_for_scan: move=%f steps\n", move);
|
DBG (DBG_info, "gl847_init_regs_for_scan: move=%f steps\n", move);
|
||||||
|
|
||||||
/* at high res we do fast move to scan area */
|
/* at high res we do fast move to scan area */
|
||||||
if(dev->settings.xres>=300)
|
if(dev->settings.xres>200)
|
||||||
{
|
{
|
||||||
status = gl847_feed (dev, move);
|
status = gl847_feed (dev, move);
|
||||||
if (status != SANE_STATUS_GOOD)
|
if (status != SANE_STATUS_GOOD)
|
||||||
|
|
Ładowanie…
Reference in New Issue