A1100 IS Porting thread - page 26 - DryOS Development - CHDK Forum

A1100 IS Porting thread

  • 646 Replies
  • 193763 Views
Re: A1100 IS Porting thread
« Reply #250 on: 07 / May / 2010, 06:42:47 »
Advertisements
.
2. what's the use of nTxtbl,How to know my values for nTxtbl.
my main.c:
static const int fl_tbl[] = {6200, 7780, 9410, 11370, 13790, 16770, 20180, 24800};

It is for zooming using the remote USB switch, mainly with two cameras for stereo.

The number of entries is normally the same as the number of zoom positions.
However, for cameras with a lot of zoom points (up to 128) you just pick seven or eight spaced zoom values.

For the A1100 :-

#if defined(CAMERA_a460) || defined(CAMERA_a1100) ||  etc

Re: A1100 IS Porting thread
« Reply #251 on: 07 / May / 2010, 07:23:24 »
like this: 0.4--->126  
another press shutter button with 0.4--->128
so how the 0.4 shutter time's true value?   .

I do not know why there are shutter-speed values for each camera because they should all be the same values.

In the APEX system used by Canon, one second = '0' units.
There are 96 units/EV or 32 units per 1/3 EV.

So, two seconds = -96, four seconds = -192, etc.
0.5 seconds = 96, 0.25 seconds = 192, etc.

If you ask the Canon firmware for the shutter-speed, it will return an answer to a greater resolution than 1/3 EV (32 units).

So, the value can be slightly different from the standard table described above.

Again, I do not know why these shutter-speed tables exist.

The same reasoning applies to the apertures table.

f1 = 0  APEX units.

f2.8  = 2.8*2.8/1  less exposure than f1 = 8x less = three EV's = 288 APEX units.
So, in the aperture table :-
{  9, 288, "2.8" },

f8 = 8*8/2.8*2.8 less exposure than f2.8 = 8x less = three EV's less = 288 units less.
So, in the aperture table :-

{ 18, 576, "8.0" },

« Last Edit: 07 / May / 2010, 07:32:56 by Microfunguy »

Re: A1100 IS Porting thread
« Reply #252 on: 07 / May / 2010, 20:13:58 »
Canon PowerShot A1100 IS
beta version 0.02
1.add ND filter control

Re: A1100 IS Porting thread
« Reply #253 on: 07 / May / 2010, 20:20:21 »
llibtst.lua passes all tests.


Re: A1100 IS Porting thread
« Reply #254 on: 07 / May / 2010, 20:34:42 »
I think I have done the shooting.c
but When choose
1.shutter speed overide----128 ,32 ,64,1/20
                      value factor--->1
                       enum type--ev step
it give me sutter spedd 4,1,2,1/640
like speed overide value&1/30,is that normal?

when I choose           sutter speed overide---->1
                                 value factor--->1/100
                               enum type--->facotr
yes it give me what I want.           speed overide value*value factor =1/100




2.ISO overide
ISO overide value---->10,12,20
       value facotor---->10

It give me  160,200,320
So I think the ISO overide is not right?
But I do not know how to correct it?
So any body konw where is the prbolem?



Code: [Select]
this is my shooting.c
const ApertureSize aperture_sizes_table[] = {
{  9, 274, "2.7" },
{ 10, 297, "2.8" },
{ 11, 321, "3.2" },
{ 12, 349, "3.5" },
{ 13, 379, "4.0" },
{ 14, 413, "4.5" },
{ 15, 447, "5.0" },
{ 16, 483, "5.6" },
{ 17, 574, "8.0" },//---->with ND filter
{ 18, 598, "9.0" },
{ 19, 626, "10.0" },
{ 20, 656, "11.0" },
{ 21, 690, "13.0" },
{ 22, 724, "14.0" },
{ 23, 760, "16.0" },
};

const ShutterSpeed shutter_speeds_table[] = {
 { -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 },
};

const ISOTable iso_table[] = {
{  0,    0, "Auto", -1},
{  1,   80,   "80", -1},
{  2,  100,  "100", -1},
{  3,  200,  "200", -1},
{  4,  400,  "400", -1},
{  5,  800,  "800", -1},
{  6, 1600, "1600", -1},
{  7, 3200, "3200", -1},
};  
static const CapturemodeMap modemap[] = {
{ MODE_AUTO,               32768  },
{ MODE_P,                  32772  },

{ MODE_VIDEO_STD,          2598   },

{ MODE_SCN_PORTRAIT,       32781  },
{ MODE_SCN_NIGHT_SCENE,    32779  },
{ MODE_SCN_KIDS_PETS,      32784  },
{ MODE_SCN_INDOOR,         32785  },
{ MODE_SCN_SUNSET,         16402  },
{ MODE_SCN_FIREWORK,       16406  },
  { MODE_SCN_LONG_SHUTTER,   16390  },
  { MODE_SCN_BEACH,          16405  },
  { MODE_SCN_AQUARIUM,       16408  },
  { MODE_SCN_FOLIAGE,        16403  },
  { MODE_SCN_SNOW,           16404  },
  { MODE_SCN_ISO_3200,       16413 },
  { MODE_LANDSCAPE,          32780 },
  { MODE_EASY,               33311 }
 };      
« Last Edit: 07 / May / 2010, 20:40:10 by xiaofeng »

Re: A1100 IS Porting thread
« Reply #255 on: 07 / May / 2010, 20:39:09 »
llibtst.lua passes all tests.
what's that meaning?

Re: A1100 IS Porting thread
« Reply #256 on: 07 / May / 2010, 21:05:20 »
llibtst.lua passes all tests.
what's that meaning?
That's a test script that verifies that the Lua libraries are functioning properly. Lua, as you probably know, is one of the languages users can use to write scripts to control their camera (UBASIC is the other). CHDK comes with some example scripts in both languages and there are others that are ready to use available in the wiki and elsewhere.

Re: A1100 IS Porting thread
« Reply #257 on: 07 / May / 2010, 21:09:37 »
That's a test script that verifies that the Lua libraries are functioning properly. Lua, as you probably know, is one of the languages users can use to write scripts to control their camera (UBASIC is the other). CHDK comes with some example scripts in both languages and there are others that are ready to use available in the wiki and elsewhere.
Yes,I am use chinese now.


Re: A1100 IS Porting thread
« Reply #258 on: 07 / May / 2010, 21:32:06 »
That's a test script that verifies that the Lua libraries are functioning properly. Lua, as you probably know, is one of the languages users can use to write scripts to control their camera (UBASIC is the other). CHDK comes with some example scripts in both languages and there are others that are ready to use available in the wiki and elsewhere.
Yes,I am use chinese now.
Sorry, I mean programming language, rather than natural language.

Re: A1100 IS Porting thread
« Reply #259 on: 08 / May / 2010, 00:47:12 »
I think I have done the shooting.c
but When choose
1.shutter speed overide----128 ,32 ,64,1/20
                      value factor--->1
                       enum type--ev step
it give me sutter spedd 4,1,2,1/640
like speed overide value&1/30,is that normal?

when I choose           sutter speed overide---->1
                                 value factor--->1/100
                               enum type--->facotr
yes it give me what I want.           speed overide value*value factor =1/100




2.ISO overide
ISO overide value---->10,12,20
       value facotor---->10

It give me  160,200,320
So I think the ISO overide is not right?
But I do not know how to correct it?
So any body konw where is the prbolem?



Code: [Select]
this is my shooting.c
const ApertureSize aperture_sizes_table[] = {
{  9, 274, "2.7" },
{ 10, 297, "2.8" },
{ 11, 321, "3.2" },
{ 12, 349, "3.5" },
{ 13, 379, "4.0" },
{ 14, 413, "4.5" },
{ 15, 447, "5.0" },
{ 16, 483, "5.6" },
{ 17, 574, "8.0" },//---->with ND filter
{ 18, 598, "9.0" },
{ 19, 626, "10.0" },
{ 20, 656, "11.0" },
{ 21, 690, "13.0" },
{ 22, 724, "14.0" },
{ 23, 760, "16.0" },
};

const ShutterSpeed shutter_speeds_table[] = {
  { -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 },
};

const ISOTable iso_table[] = {
{  0,    0, "Auto", -1},
{  1,   80,   "80", -1},
{  2,  100,  "100", -1},
{  3,  200,  "200", -1},
{  4,  400,  "400", -1},
{  5,  800,  "800", -1},
{  6, 1600, "1600", -1},
{  7, 3200, "3200", -1},
};   
static const CapturemodeMap modemap[] = {
{ MODE_AUTO,               32768  },
{ MODE_P,                  32772  },

{ MODE_VIDEO_STD,          2598   },

{ MODE_SCN_PORTRAIT,       32781  },
{ MODE_SCN_NIGHT_SCENE,    32779  },
{ MODE_SCN_KIDS_PETS,      32784  },
{ MODE_SCN_INDOOR,         32785  },
{ MODE_SCN_SUNSET,         16402  },
{ MODE_SCN_FIREWORK,       16406  },
  { MODE_SCN_LONG_SHUTTER,   16390  },
  { MODE_SCN_BEACH,          16405  },
  { MODE_SCN_AQUARIUM,       16408  },
  { MODE_SCN_FOLIAGE,        16403  },
  { MODE_SCN_SNOW,           16404  },
  { MODE_SCN_ISO_3200,       16413 },
  { MODE_LANDSCAPE,          32780 },
  { MODE_EASY,               33311 }
 };       

 

Related Topics