Changeset 663


Ignore:
Timestamp:
05/15/11 07:43:11 (2 years ago)
Author:
msl
Message:

Korrektur Skript

Location:
trunk/CHDK/SCRIPTS/USER
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHDK/SCRIPTS/USER/br_h_new.lua

    r356 r663  
    11--[[ 
    22******************************** 
    3 automatische Melichtungsreihe 
     3automatische Belichtungsreihe 
    44(c)msl 
    55Licence: GPL 
     
    3333 
    3434function log(...) 
    35         io.write(...) 
    36         io.write("\n") 
     35    io.write(...) 
     36    io.write("\n") 
    3737end 
    3838 
     
    5757 
    5858function fastshoot() 
    59         press("shoot_half") 
    60         repeat 
    61         sleep(1) 
    62         until get_shooting() == true 
    63         press("shoot_full") 
    64         release("shoot_full") 
    65         release("shoot_half") 
    66         repeat 
    67                 sleep(1) 
    68         until get_shooting() ~= true 
     59    press("shoot_half") 
     60    repeat 
     61        sleep(10) 
     62    until get_shooting() == true 
     63    press("shoot_full") 
     64    release("shoot_full") 
     65    release("shoot_half") 
     66    repeat 
     67        sleep(10) 
     68    until get_shooting() ~= true 
    6969pic_num = pic_num + 1 
    7070end 
     
    106106        if(dcimList) then  
    107107            table.sort(dcimList)  
    108 --            while i<=#dcimList do  
    109 --                   if string.upper(string.sub(dcimList[i],4))~="CANON" then  
    110 --                        table.remove(dcimList,i)  
    111 --                    else i=i+1 end  
    112 --            end  
    113108        end  
    114109return dcimList  
     
    116111 
    117112function getImageList() 
    118         local imgTable = {} 
    119         local dcimList = getImageDirs() 
    120         local dirCount = table.getn(dcimList) 
    121         local i = 0 
    122         while ( dirCount ~= i) do 
    123                 i = i + 1 
    124                 local imgDirList = os.listdir("A/DCIM/"..dcimList[i], false) 
    125                 local imgCount = table.getn(imgDirList) 
    126                 table.sort(imgDirList) 
    127                 local a = 0 
    128                 while (imgCount ~= a) do 
    129                         a = a + 1 
    130                         table.insert(imgTable,"A/DCIM/"..dcimList[i].."/"..imgDirList[a]) 
    131                 end 
    132         end 
     113    local imgTable = {} 
     114    local dcimList = getImageDirs() 
     115    local dirCount = table.getn(dcimList) 
     116    local i = 0 
     117    while ( dirCount ~= i) do 
     118        i = i + 1 
     119        local imgDirList = os.listdir("A/DCIM/"..dcimList[i], false) 
     120        local imgCount = table.getn(imgDirList) 
     121        table.sort(imgDirList) 
     122        local a = 0 
     123        while (imgCount ~= a) do 
     124            a = a + 1 
     125            table.insert(imgTable,"A/DCIM/"..dcimList[i].."/"..imgDirList[a]) 
     126        end 
     127    end 
    133128return imgTable 
    134129end 
    135130 
    136131function filter(searchString) 
    137         local imageList = getImageList() 
    138         local count = table.getn(imageList) 
    139         local i = 0 
    140         while i ~= count do 
    141                 i = i + 1 
    142                 if(string.find(imageList[i],searchString,17, true) == nil) then 
    143                         table.remove(imageList,i) 
    144                         i = i - 1 
    145                         count = count - 1 
    146                 end 
    147         end 
     132    local imageList = getImageList() 
     133    local count = table.getn(imageList) 
     134    local i = 0 
     135    while i ~= count do 
     136        i = i + 1 
     137        if(string.find(imageList[i],searchString,17, true) == nil) then 
     138            table.remove(imageList,i) 
     139            i = i - 1 
     140            count = count - 1 
     141        end 
     142    end 
    148143return imageList 
    149144end 
     
    196191shot_histo_enable(1) 
    197192 
    198 delay(delay_sec) 
     193if delay_sec > 0 then delay(delay_sec) end 
    199194 
    200195log_name() 
  • trunk/CHDK/SCRIPTS/USER/liesmich.txt

    r654 r663  
    11- 7upLight.bas 
    22 
    3 Skript für Intervall-Anwendungen mit umfangreichen Einstellmöglichkeiten 
    4 für Anzahl der Bilder, Zeitintervall, Bild-Kompression, Bildgröße, LCD 
     3Skript für Intervall-Anwendungen mit umfangreichen Einstellmoeglichkeiten 
     4für Anzahl der Bilder, Zeitintervall, Bild-Kompression, Bildgroesse, LCD 
    55Ausschalten, Akku/Batterie-Stop, Autofokus sperren u.v.m. 
    66 
     
    99Skript erstellt automatisch Belichtungsreihen mit Hilfe einer Histogramm- 
    1010Auswertung. Man braucht nur die Schrittweite einzustellen. Die notwendige 
    11 Anzahl der bilder wird automatisch berechnet. Im Ordner LOGS wird eine 
     11Anzahl der Bilder wird automatisch berechnet. Im Ordner LOGS wird eine 
    1212Log-Datei mit Informationen zur Reihe erstellt. 
    1313 
     
    1616Skript zum Speichern und Wiederherstellen der Konfiguration. Es koennen bis 
    1717zu 10 unterschiedliche Konfigurationen abgespeichert und wieder geladen werden. 
    18 Das ist nützlich, um persoenliche und fuer bestimmte Aufgaben eingerichtete 
     18Das ist nuetzlich, um persoenliche und fuer bestimmte Aufgaben eingerichtete 
    1919Einstellungen und OSD-Anzeigen zu sichern. 
    2020 
     
    2323Das Skript stellt für Kameras ohne Tv-Modus einen virtuellen Tv-Modus bereit. 
    2424Es erweitert aber auch diesen Modus für Kameras mit TV-Modus. Optional kann 
    25 eine Berechnung für den notwendigen ISO-Wert in Abhängigkeit der Verschluss- 
     25eine Berechnung für den notwendigen ISO-Wert in Abhaengigkeit der Verschluss- 
    2626zeit ermittelt werden. 
    2727 
Note: See TracChangeset for help on using the changeset viewer.