Sometimes Powershot S100 starts in "playback" mode. - General Help and Assistance on using CHDK stable releases - CHDK Forum

Sometimes Powershot S100 starts in "playback" mode.

  • 2 Replies
  • 3074 Views
Sometimes Powershot S100 starts in "playback" mode.
« on: 12 / July / 2016, 11:21:49 »
Advertisements
Hi, I have a well working LUA script, - it always starts in shooting mode, due to:

press("shoot_half")
sleep(200)
release("shoot_half")
sleep(2000)


 except:
if there are no photos on the SD, it'll rather start in play mode saying "no image" , then I need to stop/start my script.
The script does start, just don't extend the lens, (the code above is ignored)
Same happens occasionally when there are pictures, showing last picture - and it needs stop/start (by pressing shutter) to go into shooting mode.


It's used for robotics, so it's really inconvenient.
How can I ensure shooting mode?

Re: Sometimes Powershot S100 starts in "playback" mode.
« Reply #1 on: 12 / July / 2016, 11:43:10 »
solved by simply repeating the press/release code.  twice seems to fix it always.

*

Offline reyalp

  • ******
  • 14080
Re: Sometimes Powershot S100 starts in "playback" mode.
« Reply #2 on: 12 / July / 2016, 13:45:48 »
I would guess the canon firmware is busy right after startup and sometimes misses the key press.

It would be interesting to know if just using a longer delay with a single press is enough, you could do something like
press('shoot_half')
repeat sleep(10) until get_mode()
release('shoot_half')
to hold the button down until it switches.

If you actually have to click twice, that might be a bug.

FWIW, I would normally use set_record(true) to switch to shooting mode in a script, but it's possible that using this right after boot could have problems too.

Don't forget what the H stands for.

 

Related Topics