Before I spend time and write my own Cheers
// core/gui.c lines 1285++static const char* tv_override[]={#ifdef CAM_EXT_TV_RANGE // add very long time exposures as approximately powers of 2, adding 15 exposures "2048","1625","1290","1024","812","645","512","406","322","256","203","161","128","101","80",#endif "64","50.8", "40.3", "32", "25.4","20","16", "12.7", "10","8", "6.3","5","4","3.2", "2.5","2", "1.6", "1.3", "1", "0.8", "0.6", "0.5", "0.4", "0.3", "1/4", "1/5", "1/6", "1/8", "1/10", "1/13", "1/15", "1/20", "1/25", "1/30", "1/40", "1/50", "1/60", "1/80", "1/100", "1/125", "1/160", "1/200", "1/250", "1/320", "1/400", "1/500", "1/640","1/800", "1/1000", "1/1250", "1/1600","1/2000","1/2500", "1/3200","1/4000", "1/5000", "1/6400", "1/8000", "1/10000", "1/12500", "1/16000", "1/20000", "1/25000", "1/32000", "1/40000", "1/50000", "1/64000","1/80000", "1/100k"};
There´s a shutter_speeds_table in .../platform/.../shooting.c
The CHDKplus script has a good example for a lookup table
// core/shooting.c line 764++// Only needed on VxWorks#if CAM_DRAW_EXPOSITION// compare PROPCASE_TV with shutter_speeds_tablechar* shooting_get_tv_str(){ return (char*)shutter_speeds_table[find_nearest_shutter_speed_entry(shooting_get_tv96())].name;}#endif
Could it be exposed to Lua-script, like a dof.value
Btw, for aperture values you can use the Lua function av96_to_aperture().
get_user_tv_idReturns the index in the aperture table found in the camera's CHDK shooting.c file for the current Av setting in APEX96 units for M (manual) or Av (aperture priority) modes on cameras that support those modes.*** Just tried it an it works, ie, on the M3, BULB = -33 and 30s = -15. I can now use this to index my look up table :-)***UPDATEJust tried it and all OK, ie on the M3, I'm sure it will vary with cameras, BULB is -33 and 30s is -15 :-)
Started by jamesgreaves Script Writing
Started by tomk358 DSLR Hack development
Started by bugsplatter « 1 2 » Script Writing
Started by GeekStyle59 General Help and Assistance on using CHDK stable releases
Started by salukikev Script Writing