Adding new cameras, applying patches into trunk (with source code prepared) - page 141 - General Discussion and Assistance - CHDK Forum
supplierdeeply

Adding new cameras, applying patches into trunk (with source code prepared)

  • 1679 Replies
  • 782430 Views
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1400 on: 04 / October / 2014, 16:31:07 »
Advertisements
Patch files  to fix  the USB remote zoom function for "super zooms" as discussed here : Remote Zoom Strange Behavior w/A4000

I think the 1.2.0 version qualifies as a bug fix.  Certainly being able to zoom in 10 to 12 discrete steps rather than 121 on cameras like the S100 is a big improvement (ignoring that it mostly would not work at all for super zooms using 1.2.0 )

Tested on S100 and A1200 (both 1.2.0 and 1.3.0 versions).

Update : patch files update to fix error spotted by reyalp  (and philmoz)  :-[

« Last Edit: 04 / October / 2014, 19:55:52 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1401 on: 04 / October / 2014, 16:33:03 »
Changes to the S100's platform_camera.h to improve CHDK driven zoom positioning.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14079
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1402 on: 04 / October / 2014, 21:18:48 »
Patch files  to fix  the USB remote zoom function for "super zooms" as discussed here : Remote Zoom Strange Behavior w/A4000
Added, trunk changeset 3640 release changeset 3641

I switched the nested ternaries to if/else, hopefully I didn't break it.
Don't forget what the H stands for.

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1403 on: 04 / October / 2014, 22:20:04 »
Changes to the S100's platform_camera.h to improve CHDK driven zoom positioning.

Added to trunk (3642) and release (3643).

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)


Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1404 on: 05 / October / 2014, 15:07:01 »
In discussing the CHDKplus.lua script today (http://chdk.setepontos.com/index.php?topic=11284.msg117360#msg117360) the idea of being able to manage the PLAYBACK key was raised. 

Again.

link > playback key for script + key masks
link > Allowing scripts to trap full & half press shutter button activations

Not sure why this has been omitted so far - the change nafraf made to the uBASIC test script looking for the playback key has been in the autobuild for a while now.

Turns out to be a really nice addition to CHDKplus.lua for cameras that have the playback key defined in their keymask.  And even if PLAYBACK is selected as the <ALT> key, it still mostly works correctly.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14079
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1405 on: 05 / October / 2014, 20:59:33 »
Not sure why this has been omitted so far - the change nafraf made to the uBASIC test script looking for the playback key has been in the autobuild for a while now.
Just forgotten  I think. Added in trunk changeset 3644.

Note that quite a few cameras that use it as the alt key have it aliases to KEY_PRINT. I don't think this will cause any actual problems.
Don't forget what the H stands for.

Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1406 on: 08 / October / 2014, 22:09:36 »
A boring little patch to add the missing enter_alt function to uBASIC and a new get_alt_mode() function to both Lua and uBASIC per a new function to allow Lua to determine if CHDK is currently in <ALT> mode

(Test script in the zip file.)

Update :  patch updated per http://chdk.setepontos.com/index.php?topic=11962.msg117448#msg117448
« Last Edit: 10 / October / 2014, 18:44:21 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1407 on: 11 / October / 2014, 20:52:59 »
A small patch to correct how the jog dial direction is interpreted on the S100.   Currently,  turning the dial in the Canon menus moves through the selected menus in the opposite direction than when you turn the dial in the CHDK menus.

Annoying.

This patch fixes that.
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1408 on: 11 / October / 2014, 21:20:17 »
A small patch to correct how the jog dial direction is interpreted on the S100.   Currently,  turning the dial in the Canon menus moves through the selected menus in the opposite direction than when you turn the dial in the CHDK menus.

Annoying.

This patch fixes that.

Added in revision 3658 (trunk) and 3659 (release).

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1409 on: 06 / December / 2014, 21:46:48 »
Fixes for video mode issues discussed here : http://chdk.setepontos.com/index.php?topic=9986.msg118892#msg118892

Corrects the Powershot N,  Powershot N Facebook,  S100, and A1200.   

All tested  on 1.3.0 (except n_facebook camera) with vidtest.lua and now perform properly (i.e. no reported errors).
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics