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

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

  • 1679 Replies
  • 782449 Views
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1420 on: 13 / January / 2015, 23:36:29 »
Advertisements
Fix for video button interaction with Canon shooting mode per this discussion :  http://chdk.setepontos.com/index.php?topic=12163.msg119879#msg119879

Has no effect on cameras without video button (none needed).

On camera with video button that have no CHDK defined Canon shooting modes that contain the 0x0400 video bit, it prevents the return of a null shooting mode.  Tested on S100 using USB Remote Control Mode [ Video ].

On camera with video button but with defined Canon modes that contain the 0x0400 video bit,  everything works as before.  Tested on Powershot N using USB Remote Control Mode [ Video ].
.

1.3 patch uses VID_REC_ACTIVE_BIT in shooting.c instead of CAM_MASK_VID_REC_ACTIVE. It also includes spurious changes for SX240 & SX260 (looks like a partial failed patch).

Phil.
Wow - bizarre patch file.  Please ignore the 1.3.0 patch - no idea what happened there.  1.3.0 users can struggle on with the way it has been for years I guess.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1421 on: 14 / January / 2015, 03:50:21 »
Fix for video button interaction with Canon shooting mode per this discussion :  http://chdk.setepontos.com/index.php?topic=12163.msg119879#msg119879

Has no effect on cameras without video button (none needed).

On camera with video button that have no CHDK defined Canon shooting modes that contain the 0x0400 video bit, it prevents the return of a null shooting mode.  Tested on S100 using USB Remote Control Mode [ Video ].

On camera with video button but with defined Canon modes that contain the 0x0400 video bit,  everything works as before.  Tested on Powershot N using USB Remote Control Mode [ Video ].
.
Edit : deleted 1.3.0 patch file - contents were bizarre

1.4 changes added in revision 3916.

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 #1422 on: 17 / January / 2015, 18:21:48 »
A couple more updates to shooting modes per http://chdk.setepontos.com/index.php?topic=12163.msg119906#msg119906 and conversations with reyalp on IRC.

The 1.3.0 patch file is the corrected version of what I meant to post earlier to fix USB remote video mode lockups for cameras with a seperate video button (patch already applied to 1.4.0)

The 1.4.0 patch file removes mode definitions that can't actually be set via set_capture_mode().

Edit : complete trunk build was completed for both patches.  Results tested on Powershot N and S100 using USB remote video control mode.
« Last Edit: 17 / January / 2015, 19:38:29 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1423 on: 17 / January / 2015, 19:59:43 »
A couple more updates to shooting modes per http://chdk.setepontos.com/index.php?topic=12163.msg119906#msg119906 and conversations with reyalp on IRC.

The 1.3.0 patch file is the corrected version of what I meant to post earlier to fix USB remote video mode lockups for cameras with a seperate video button (patch already applied to 1.4.0)

The 1.4.0 patch file removes mode definitions that can't actually be set via set_capture_mode().

Edit : complete trunk build was completed for both patches.  Results tested on Powershot N and S100 using USB remote video control mode.

Added in revision 3927 (1.4) and 3928 (1.3).

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 #1424 on: 23 / January / 2015, 19:32:49 »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14079
Don't forget what the H stands for.

Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1426 on: 06 / February / 2015, 20:42:29 »
User menu mods to expand how scripts are handled.   Pressing the shutter button runs the script when it's selected in the User Menu.  Pressing Func/Set brings up a dialog box to allow the script to be loaded and then jump to the Script menu, or to cancel.

From the Script menu, selecting Back returns you to the User Menu.

forum thread : alternative ways to start a script
« Last Edit: 06 / February / 2015, 20:46:21 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1427 on: 07 / February / 2015, 05:12:39 »
User menu mods to expand how scripts are handled.   Pressing the shutter button runs the script when it's selected in the User Menu.  Pressing Func/Set brings up a dialog box to allow the script to be loaded and then jump to the Script menu, or to cancel.

From the Script menu, selecting Back returns you to the User Menu.

forum thread : alternative ways to start a script

Added in revision 3979.

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 #1428 on: 14 / February / 2015, 18:52:26 »
Patch file (1.4.0) to cleanup USB remote code per the discussion here : http://chdk.setepontos.com/index.php?topic=7127.msg120508#msg120508

Patch simplifies the code by removing unnecessary interlocks,  fixes some issues with debug mode, and adds a usb_sync_wait() function to Lua and uBASIC for scripting use with multi-camera setups.

Updates to the usb_force_active() function per this discussion : http://chdk.setepontos.com/index.php?topic=7127.msg120539#msg120539  deferred pending reyalp updates to kbd.c files.



 
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14079
Don't forget what the H stands for.

 

Related Topics