S100 porting thread - page 24 - DryOS Development - CHDK Forum

S100 porting thread

  • 287 Replies
  • 134171 Views
*

Offline hwntw

  • ***
  • 162
Re: S100 porting thread
« Reply #230 on: 01 / August / 2013, 10:17:30 »
Advertisements
We got a custom palette recently, which improves the histogram display, (Thx). More features such as shot meter from @lapser, may appear, you never know.
Ixus 95 IS Ixus 30 izoom Powershot S80 S100 S200


Windows 10

Re: S100 porting thread
« Reply #231 on: 01 / August / 2013, 20:49:42 »
I'm not sure if this is the best place to ask for some help w/ a script for the S100...so pls let me know if I'm wrong.

I'm trying to get an intervalometer script that shuts off the LCD once it has started taking photos.  I found an earlier entry in this thread (entry #125) w/ a script that does this but I can't get the script to work on my camera.  I've got the 101a firmware and I'm running CHDK version s100-101a-1.2.0-2994-0 on it.  I keep getting errors that leads to no photos even getting taken.  I'm not good at programming so I don't know how to fix the script for this latest CDHK version. 

Can anyone out there help?  Thank you.   

Re: S100 porting thread
« Reply #232 on: 01 / August / 2013, 21:13:00 »
I'm trying to get an intervalometer script that shuts off the LCD once it has started taking photos.  I found an earlier entry in this thread (entry #125) w/ a script that does this but I can't get the script to work on my camera.   
The easiest way to do that is to add a line that uses the set_backlight command.
http://chdk.wikia.com/wiki/Script_commands#set_backlight.28.29

You need to put it after each shoot command as that turns the backlight back on.

If you post the script file here as an attachment,  I'll show you where to put it.    Usually when people can't get scripts to run that they have cut & pasted from this forum,  its because the selected the wrong file extension in the file name or they failed to save the text as simple ASCII - UTF8  (no formatting).

Edit : as you learn more about scripting, you might want to look at how this script does battery saving : http://chdk.wikia.com/wiki/Battery_Intervalometer
« Last Edit: 01 / August / 2013, 21:16:08 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: S100 porting thread
« Reply #233 on: 02 / August / 2013, 12:45:43 »
Thanks for that link, waterwingz. I saved that script you sent as a *.lua.  But when I tried to run it, I got a error:

:29: unexpected symbol near  'char(194)'

and it terminated.  What does t his mean?  I don't really need the logging feature so I guess I can remove that section once I figure this one out.



This was the original script I was playing w/. But this also give me an error.  Thank you for your help.   


@title int_BLFL
@param a = interval (sec)
@default a 7
@param b = backlight delay (sec)
@default b 3
@param c = use focus lock? (1/0)
@default c 1
 
if get_mode = 0 then goto "in_rec"
  sleep 1000
  set_record 1

:wait_rec
  sleep 100
  if get_mode <> 0 then goto "wait_rec"

:in_rec
s = (a*1000)+get_tick_count
shoot
sleep b*1000
set_aflock c
set_backlight 0
do
    sleep 500
until (s <= get_tick_count)
do
    s = (a*1000)+get_tick_count
    shoot
    sleep b*1000
    set_backlight 0
    do
       sleep 500
    until (s <= get_tick_count)
until ( 0 )

:restore
    set_backlight 1
    set_aflock 0
    sleep 1000
    end

Re: S100 porting thread
« Reply #234 on: 02 / August / 2013, 14:17:10 »
Thanks for that link, waterwingz. I saved that script you sent as a *.lua.  But when I tried to run it, I got a error:

:29: unexpected symbol near  'char(194)'

and it terminated.  What does t his mean?  I don't really need the logging feature so I guess I can remove that section once I figure this one out.
What are you using on your PC to create / edit the script file?  You need to use something simple like notepad.exe - something that creates basic ASCII UTF-8 text files.  It looks like you are using a word processor or other editor that is embedding formatting information.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: S100 porting thread
« Reply #235 on: 05 / August / 2013, 10:58:38 »
I was using a Mac and TextEdit which I thought was a notepad equivalent.  But I guess I was wrong.  I just used a PC (Notepad) and got the Battery Miser to finally work on my S100.  Thank you very much for your help.  I really appreciate it.  Now, I don't have to lug around a video cable to get the camera to disable the LCD.

One final question about the Battery Stop Voltage setting on Battery Miser...

What's the lowest setting you've tried?  Any danger in going below the default 1000mV?  I want to squeeze as many photos as possible for time lapse purposes.    I'm assuming the script will continue to run as long as there is enough power and will automatically stop just before the battery runs out.  Thanks again. 

Re: S100 porting thread
« Reply #236 on: 05 / August / 2013, 11:25:43 »
What's the lowest setting you've tried?  Any danger in going below the default 1000mV?  I want to squeeze as many photos as possible for time lapse purposes.    I'm assuming the script will continue to run as long as there is enough power and will automatically stop just before the battery runs out.  Thanks again.
If you set it low enough,  the camera will shut down with the script in an indeterminate state when it decides the battery is too low.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: S100 porting thread
« Reply #237 on: 10 / July / 2014, 10:53:44 »
Hello,

I found a bug within the DNG implementation on my 102A S100.

The DNGs it produces (either with STABLE 1.2.0-3475 or TRUNK 1.3.0-3496) are always corrupted:

Adobe Camera Raw says "bad format" and dng_validate outputs:
*** Error: ForwardMatrix2 does not map equal camera values to XYZ D50 ***
*** Error: File format is invalid ***


I compared with Exiftool a CR2 converted to DNG by Camera Raw and the DNG from CHDK:


$ exiftool -ForwardMatrix1 -ForwardMatrix2 IMG_2542.dng
Forward Matrix 2                : 0.6242 0.4092 -0.0691 0.188 1.1431 -0.3312 -0.042 -0.1341 1.0012



$ exiftool -ForwardMatrix2 CRW_2575.DNG
Forward Matrix 2                : 0.6242 0.4092 -0.0691 0.0188 1.1431 -0.3312 -0.042 -0.1341 1.0012


the 4th parameter is 1/10th of what should be.

Issue is at line #94 of  platform_camera.h (revision 2730);

here is the patch:


Index: platform_camera.h
===================================================================
--- platform_camera.h   (revision 3496)
+++ platform_camera.h   (working copy)
@@ -91,7 +91,7 @@
      -1633, 10000,  -3155, 10000,  13040, 10000
     #define CAM_FORWARDMATRIX2    \
       6242, 10000,   4092, 10000,   -691, 10000, \
-       188, 10000,  11431, 10000,  -3312, 10000, \
+      1880, 10000,  11431, 10000,  -3312, 10000, \
       -420, 10000,  -1341, 10000,  10012, 10000
     #define CAM_DNG_EXPOSURE_BIAS 0,1


Can anybody apply it to both trunk and stable release?

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: S100 porting thread
« Reply #238 on: 10 / July / 2014, 16:41:42 »
Can anybody apply it to both trunk and stable release?
Thanks for that. Added in revision 3497 & 3498

msl
CHDK-DE:  CHDK-DE links

*

Offline hwntw

  • ***
  • 162
Re: S100 porting thread
« Reply #239 on: 11 / July / 2014, 08:50:24 »
Good catch, but why DNG when you can shoot native Canon RAW with this camera?
Ixus 95 IS Ixus 30 izoom Powershot S80 S100 S200


Windows 10

 

Related Topics


SimplePortal © 2008-2014, SimplePortal