USB Remote Switch in CHDK - version 2 implementation thread - page 4 - General Discussion and Assistance - CHDK Forum

USB Remote Switch in CHDK - version 2 implementation thread

  • 220 Replies
  • 83687 Views
Re: USB Remote Switch in CHDK - an open discussion about cleaning up the code
« Reply #30 on: 02 / January / 2012, 09:28:19 »
Advertisements

 how is that useful, even when syncing multiple cameras ?

Makes sure all cameras are at same zoom setting, especially tricky if your camera has over one hundred zoom steps.

You have to decide what features are useful to most CHDK users.

I know what I would do regarding the whole CHDK synch code  ..

Re: USB Remote Switch in CHDK - an open discussion about cleaning up the code
« Reply #31 on: 02 / January / 2012, 09:52:26 »
Makes sure all cameras are at same zoom setting, especially tricky if your camera has over one hundred zoom steps.
Not sure I "get it" yet.  You have to setup all cameras up one by one to the same initial position and then you have to quickly press the zoom lever on each camera to set the direction.  After doing all that, using the remote to move the zooms together seems like it doesn't get you much ?  Especially as you have to either press all the shutter buttons manually at that point or reset the USB remote mode on all  cameras to get it back into shooting mode ?  What am I missing here ?

UPDATE :   Okay, maybe I get it now.  If you have a couple of cameras, its fairly quick to zoom them all to the full out position then enable USB remote zoom.  At that point you press the switch until you like the zoom level and you have some confidence that they are all in the same zoom position.  You may have gone 60 or more steps at that point so I can see this being a time saver / precision thing ?


Quote
You have to decide what features are useful to most CHDK users. I know what I would do regarding the whole CHDK synch code  ..
I believe I have a handle on the CHDK sync code - and the four or five bugs it contains.  I'm working now on remote functionality - what was it supposed to do and what was needed.    While I suspect many people could just used SDM,  it does not support as many camera models as CHDK and some people may want CHDK functions (e.g. LUA) that are not available in SDM.  So having usable sync seems valuable and the structure I am using for the new code lends itself to simple extensions for more complex devices and algorithms.

« Last Edit: 02 / January / 2012, 11:00:56 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: USB Remote Switch in CHDK - an open discussion about cleaning up the code
« Reply #32 on: 02 / January / 2012, 11:31:05 »
You may have gone 60 or more steps

No, that is the point, no more than 14 steps with any camera.

Re: USB Remote Switch in CHDK - an open discussion about cleaning up the code
« Reply #33 on: 02 / January / 2012, 11:40:40 »
No, that is the point, no more than 14 steps with any camera.
THANK YOU ! 

At last I understand the reason behind that awful mess at the start of core/kbd.c with all the nTxtbl[] & ZSTEP_TABLE_SIZE stuff.   

It all goes away if the USB zoom stuff is implemented with shooting_set_zoom() rather than faking key presses in the kbd.c code.  But the key is to scale the zoom positions so that it has a short number of steps from end to end.

Very useful to know.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: USB Remote Switch in CHDK - an open discussion about cleaning up the code
« Reply #34 on: 02 / January / 2012, 11:58:18 »

At last I understand the reason behind that awful mess at the start of core/kbd.c

You have to know the history of CHDK, which you do because you have studied it.
It is the result of hundreds of contributions with no centralised control.
One forum member described CHDK development as a programmers playground.
I tend to agree that it was and am pleased to see that some contributions  by early, enthusiastic developers will be relegated to modules.

We just want to take photos after all (or most do).


Re: USB Remote Switch in CHDK - an open discussion about cleaning up the code
« Reply #35 on: 02 / January / 2012, 12:04:22 »
You have to know the history of CHDK ...
Very true.  After many years of fixing other people's code,  I have a simple rule.  I try to never change anything where I don't understand the original reason behind it.  Most of the stuff I see was written by much better programmers than me, so I learn a lot that way and I create fewer new bugs fixing old ones. Almost every time that I have assumed the original programmer was a moron, I've been bitten hard.

Ported :   A1200    SD940   G10    Powershot N    G16

Re: USB Remote Switch in CHDK -wikia page draft posted
« Reply #36 on: 08 / January / 2012, 14:01:32 »
Posted the first draft of the wikia page for the new USB remote code here : USB Remote V2

I have a running version of everything documented there (except the additional script commands - the code to support them is done but the commands that call that code still need to be added.)

Its actually kind of fun running zoom mode based on # of switch presses - it even works with my CA-1.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: USB Remote Switch in CHDK - an open discussion about cleaning up the code
« Reply #37 on: 08 / January / 2012, 15:13:36 »
Very good work - respect!

The concept seems to be very good. This is the future of CHDK remote control.

We still have one other feature in CHDK-DE - script start via remote control. I think this is also a very usefull function. See changeset 368 & 369.

msl
CHDK-DE:  CHDK-DE links

Re: USB Remote Switch in CHDK - an open discussion about cleaning up the code
« Reply #38 on: 08 / January / 2012, 15:16:47 »
We still have one other feature in CHDK-DE - script start via remote control. I think this is also a very usefull function.
I like the idea.  The current script mode I listed in the wiki does not actually do anything - more a place holder.  Using it to launch a scripts is a brilliant idea !
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline blackhole

  • *****
  • 946
  • A590IS 101b
    • Planetary astrophotography
Re: USB Remote Switch in CHDK - an open discussion about cleaning up the code
« Reply #39 on: 08 / January / 2012, 17:20:47 »
Excellent work.
One of the useful things made recently.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal