That is aperture table should say shutter speed table and Av should be Tv etc. Or am I wrong?
@reyalp I think I've spotted an error in the tv_id feedback on the M3.BULB is 33, but because the fastest shutter goes faster than 1/1600, ie to 1/4000, id needs to return greater than 33, which is, of course BULB.BULB needs to return some other number and the id needs to extend beyond 33.
I think for such "cosmetic" things is a Lua library the better way.
print(get_user_tv_id().."/"..get_user_tv96())
The current CHDK code doesn't have any concept of bulb, so I'm sure if it makes sense to add to the table. I'd need to look at where else it's used.
http://subversion.assembla.com/svn/chdk/trunk/platform/m3/shooting.c
// note camera supports up to 30s shutterconst ShutterSpeed shutter_speeds_table[] = { { -15, -480, "30", 30000000 }, { -14, -448, "25", 25000000 }, { -13, -416, "20", 20000000 }, { -12, -384, "15", 15000000 }, { -11, -352, "13", 13000000 }, { -10, -320, "10", 10000000 }, { -9, -288, "8", 8000000 }, { -8, -256, "6", 6000000 }, { -7, -224, "5", 5000000 }, { -6, -192, "4", 4000000 }, { -5, -160, "3.2", 3200000 }, { -4, -128, "2.5", 2500000 }, { -3, -96, "2", 2000000 }, { -2, -64, "1.6", 1600000 }, { -1, -32, "1.3", 1300000 }, { 0, 0, "1", 1000000 }, { 1, 32, "0.8", 800000 }, { 2, 64, "0.6", 600000 }, { 3, 96, "0.5", 500000 }, { 4, 128, "0.4", 400000 }, { 5, 160, "0.3", 300000 }, { 6, 192, "1/4", 250000 }, { 7, 224, "1/5", 200000 }, { 8, 256, "1/6", 166667 }, { 9, 288, "1/8", 125000 }, { 10, 320, "1/10", 100000 }, { 11, 352, "1/13", 76923 }, { 12, 384, "1/15", 66667 }, { 13, 416, "1/20", 50000 }, { 14, 448, "1/25", 40000 }, { 15, 480, "1/30", 33333 }, { 16, 512, "1/40", 25000 }, { 17, 544, "1/50", 20000 }, { 18, 576, "1/60", 16667 }, { 19, 608, "1/80", 12500 }, { 20, 640, "1/100", 10000 }, { 21, 672, "1/125", 8000 }, { 22, 704, "1/160", 6250 }, { 23, 736, "1/200", 5000 }, { 24, 768, "1/250", 4000 }, { 25, 800, "1/320", 3125 }, { 26, 832, "1/400", 2500 }, { 27, 864, "1/500", 2000 }, { 28, 896, "1/640", 1563 }, { 29, 928, "1/800", 1250 }, { 30, 960, "1/1000", 1000 }, { 31, 992, "1/1250", 800 }, { 32, 1024, "1/1600", 625 }, { 33, 1056, "1/2000", 500 },};
http://subversion.assembla.com/svn/chdk/trunk/core/shooting.c
// Find nearest entry in 'shutter_speeds_table' to the given 'tv96' valuestatic int find_nearest_shutter_speed_entry(short tv96){ if (tv96 <= shutter_speeds_table[0].prop_id) return 0; unsigned i; for (i=0; i<SS_SIZE-1; i++) { if ((tv96 > shutter_speeds_table[i].prop_id) && (tv96 <= shutter_speeds_table[i+1].prop_id)) { if ((tv96 - shutter_speeds_table[i].prop_id) < (shutter_speeds_table[i+1].prop_id - tv96)) return i; else return i+1; } } return SS_SIZE-1;}
https://app.assembla.com/spaces/chdk/subversion/source/HEAD/trunk/platform/generic/shooting.c
const unsigned int SS_SIZE = sizeof(shutter_speeds_table)/sizeof(shutter_speeds_table[0]);
Here things don't look right as the Tv table implies the camera explicitly goes beyond 30 secs, when in fact Canon BULB kicks in at the usual 30s (32s) point.
Are you saying that the only way to achieve an exposure longer than 30s (without CHDK overrides) is to use bulb mode and physically hold the shutter for the full
@reyalp may I suggest that you also have an entry beyond 1/4000 to catch the Bulb apex96 value, ie 32767 for some reason.
Someone needs to look through the usage of this table and all the functions that refer to it to determine whether it makes sense to include bulb, and whether any additional changes are needed.
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