Don't understand shoot.bas in 1.4.1 !! - Script Writing - CHDK Forum supplierdeeply

Don't understand shoot.bas in 1.4.1 !!

  • 2 Replies
  • 4246 Views
*

Offline bugbear

  • **
  • 57
  • A630
    • woodwork on geocities
Don't understand shoot.bas in 1.4.1 !!
« on: 13 / July / 2016, 08:58:47 »
Advertisements
I've just upgraded from 0.9.4 to 1.4.1

I took a look-see inside shoot.bas, which just does a configurable delay before shooting.

I was expecting to see:

Code: [Select]
sleep a*1000
shoot

What I actually see is:

Code: [Select]
sleep a*1000

press "shoot_half"

do
  sleep 50
until get_shooting = 1

press "shoot_full"
sleep 500
release "shoot_full"

do
   sleep 50
until get_shooting = 1   

release "shoot_half"

Could someone explain (or point me to the documentation that explains) ?

 BugBear

Don't understand shoot.bas in 1.4.1 !!
« Reply #1 on: 13 / July / 2016, 09:09:18 »
It's just another way to shoot put there for illustration purposes.   Using this method allows you control of the camera after a simulated "half press" of the shutter button in case you want to add code to do something else (like change exposure or focus) before the actual shot happens. There are many "tricks" more advanced scripts do using this method.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline bugbear

  • **
  • 57
  • A630
    • woodwork on geocities
Re: Don't understand shoot.bas in 1.4.1 !!
« Reply #2 on: 13 / July / 2016, 09:12:32 »
It's just another way to shoot put there for illustration purposes.   Using this method allows you control of the camera after a simulated "half press" of the shutter button in case you want to add code to do something else (like change exposure or focus) before the actual shot happens. There are many "tricks" more advanced scripts do using this method.

Ah - so it's not a "reference best way" (which I'd assumed it was).

Thank you.

 BugBear

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal