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

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

  • 1672 Replies
  • 739283 Views
*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #950 on: 09 / January / 2013, 03:07:26 »
Advertisements
Patch files to correct bug with bracketing mode not timing out correctly when used by USB remote.  Also extends the timeout interval from 5 to 10 seconds to allow a little more time between shots prior to a reset.

Patch for stable version is a minimal fix and will hit the same 1 second bug fixed in rev 2104 of dev trunk.

Patch for dev version is complete.  Includes a small code cleanup.

Tested on G10, IXUS120_SD940 and A1200.


a610 and a570 new loader patch, thanks to OhmEye for testing.


Both added in revision 2473 (trunk) and 2474 (release-1.1).

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)

*

Offline nafraf

  • *****
  • 1308
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #951 on: 10 / January / 2013, 10:35:26 »
a3100 100a alpha port and a3100 new loader tested. Pacth created from source posted by casrap here

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #952 on: 11 / January / 2013, 02:56:26 »
a3100 100a alpha port and a3100 new loader tested. Pacth created from source posted by casrap here

Added in revision 2476 (trunk) and 2477 (release-1.1).

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 #953 on: 12 / January / 2013, 21:10:09 »
Patch file for unstable 1.2.0 branch to clean-up some old #defines related to USB remote per this old thread : remote #defines

These old #undefs now cause problem in 1.2.0 per this thread :
http://chdk.setepontos.com/index.php?topic=7127.msg95640#msg95640

In the unstable branch,  #undef CAM_REMOTE causes the Remote Parameters menu to not appear.  In previous versions it only removed the submenu from the Scripting menu and disabled the USB remote OSD display.   

Change removes all references to CAM_REMOTE and CAM_SYNCH from the platform_camera.h files.  You can stil disable the Remote Parameters menu with #undef CAM_REMOTE should somebody want to do so in the future.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #954 on: 13 / January / 2013, 12:17:28 »
Patches (1.1.0 and 1.2.0) for USB Remote Bracketing function per this post :  http://chdk.setepontos.com/index.php?topic=7127.msg95671#msg95671
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #956 on: 14 / January / 2013, 16:48:03 »
Patch file for unstable 1.2.0 branch to clean-up some old #defines related to USB remote per this old thread : remote #defines

These old #undefs now cause problem in 1.2.0 per this thread :
http://chdk.setepontos.com/index.php?topic=7127.msg95640#msg95640

In the unstable branch,  #undef CAM_REMOTE causes the Remote Parameters menu to not appear.  In previous versions it only removed the submenu from the Scripting menu and disabled the USB remote OSD display.   

Change removes all references to CAM_REMOTE and CAM_SYNCH from the platform_camera.h files.  You can stil disable the Remote Parameters menu with #undef CAM_REMOTE should somebody want to do so in the future.

Patches (1.1.0 and 1.2.0) for USB Remote Bracketing function per this post :  http://chdk.setepontos.com/index.php?topic=7127.msg95671#msg95671


Added in revision 2485 (trunk) and 2486 (release-1.1).

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)

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #957 on: 14 / January / 2013, 16:53:46 »
Hello there,

here are the patches for porting S100 to the new loader code:

1) https://github.com/c10ud/CHDK/commit/a94ca402bf13c11ac473bd8c49c38a41fc78c6da.patch
2) https://github.com/c10ud/CHDK/commit/a8ad484aa8d8268d7592dfec370ffc35268e3eaf.patch

edit - if you don't want meta-data:
1) https://github.com/c10ud/CHDK/commit/a94ca402bf13c11ac473bd8c49c38a41fc78c6da.diff
2) https://github.com/c10ud/CHDK/commit/a8ad484aa8d8268d7592dfec370ffc35268e3eaf.diff

Added in revision 2487 (trunk) and 2488 (release-1.1).

It's preferable to upload the patch files directly to the posts in this thread rather than an external hosting site. Click the 'Preview' button when creating a message - there is a section to add attachments.

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)


*

Offline c10ud

  • ***
  • 245
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #958 on: 14 / January / 2013, 17:20:05 »
Hello there,

here are the patches for porting S100 to the new loader code:

1) https://github.com/c10ud/CHDK/commit/a94ca402bf13c11ac473bd8c49c38a41fc78c6da.patch
2) https://github.com/c10ud/CHDK/commit/a8ad484aa8d8268d7592dfec370ffc35268e3eaf.patch

edit - if you don't want meta-data:
1) https://github.com/c10ud/CHDK/commit/a94ca402bf13c11ac473bd8c49c38a41fc78c6da.diff
2) https://github.com/c10ud/CHDK/commit/a8ad484aa8d8268d7592dfec370ffc35268e3eaf.diff

Added in revision 2487 (trunk) and 2488 (release-1.1).

It's preferable to upload the patch files directly to the posts in this thread rather than an external hosting site. Click the 'Preview' button when creating a message - there is a section to add attachments.

Phil.

Phil, i know how to use a forum (:)) but that's not exactly an external hosting site: each link directly refers to a commit in a git repository (mine) which fits my workflow better.
Appending .diff or .patch to the single commit URLs i can give you patches: lazy yet effective.
However, if you prefer patches-appended-to-posts, next time I have something I'll surely do it.

greets

*

Offline srsa_4c

  • ******
  • 4451
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #959 on: 17 / January / 2013, 12:38:16 »
I have a proposal which would be of help for cameras that have too few buttons (and no touchscreen). This would enable normal camera use for inexperienced users, and also enable more comfortable camera control for those who don't mind that the camera's On/Off button behaves differently when in ALT mode.

Background info: this kind of remap is currently permanently enabled in the Ixus110 port (which can be confusing for some).

The patch makes changes in core in order to introduce a new configurable option and a new menu item. Since I don't do this usually, I'd like to ask for a quick look and some advice from those who do. My question is: is this acceptable?

 

Related Topics