IXUS 105 / SD1300 IS porting thread - page 3 - DryOS Development - CHDK Forum supplierdeeply

IXUS 105 / SD1300 IS porting thread

  • 772 Replies
  • 129279 Views
*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: IXUS 105 / SD1300 IS porting thread
« Reply #20 on: 16 / October / 2010, 13:14:38 »
Advertisements
c10ud,

since sx210 and this cam are the same os version r0043 maybe they should share propset

this is the ony I'm using and all the overrides work

Code: [Select]
#define PROPCASE_DRIVE_MODE 102
#define PROPCASE_FOCUS_MODE 133  // seems 0 allways??
#define PROPCASE_FLASH_MODE            143  //ASM1989 looks like moves from 2 no flash, to 1 yes flash
#define PROPCASE_FLASH_FIRE 122 //ASM1989 looks like moves from 0 if flash is closed to 1 if its open
#define PROPCASE_FLASH_MANUAL_OUTPUT    141 //ASM1989 looks like moves from 0 to 2

#define PROPCASE_FLASH_ADJUST_MODE        121  //ASM1989  dont know allways 1 ????

#define PROPCASE_USER_TV        266  //ASM1989 looks like
#define PROPCASE_TV         264  //ASM1989 looks like
#define PROPCASE_USER_AV      26   //ASM1989 looks like
#define PROPCASE_AV            23
#define PROPCASE_MIN_AV        25

#define PROPCASE_SV            249   //ASM1989 Testesd OK
#define PROPCASE_DELTA_SV      79     //was 79TESTED with  71 with no sucess
#define PROPCASE_SV_MARKET      248   //ASM1989 Testesd OK
#define PROPCASE_BV            34
#define PROPCASE_SUBJECT_DIST1 247 //ASM1989 looks like not sure
#define PROPCASE_SUBJECT_DIST2 65 //ASM1989 looks like not sure
#define PROPCASE_ISO_MODE     149    //ASM1989 looks like
#define PROPCASE_SHOOTING      208       //ASM1989 looks like
#define PROPCASE_IS_FLASH_READY      210   //ASM1989 looks like
#define PROPCASE_OVEREXPOSURE 103   //ASM1989 looks like  0 perfect exposure up to 300 overexposure, from 64000 to 0 underexposure
#define PROPCASE_SHOOTING_MODE 49   //ASM1989 looks like  cahges when mode changes...
#define PROPCASE_IS_MODE     145   //ASM1989 looks like  only chages 0,1,2,3,4
#define PROPCASE_QUALITY         57    //ASM1989 looks like  only chages 1, 2
#define PROPCASE_RESOLUTION         220   //ASM1989 looks like  only chages 0, 1....8 wide
#define PROPCASE_EV_CORRECTION_1 107  //ASM1989 looks like on P mode goes from 65344 to 0 to 192
#define PROPCASE_EV_CORRECTION_2 209  //ASM1989 looks like on P mode goes from 65344 to 0 to 192
#define PROPCASE_ORIENTATION_SENSOR 221    //ASM1989 looks like  values 0 270 or 90
#define PROPCASE_DIGITAL_ZOOM_STATE                            94
#define PROPCASE_DIGITAL_ZOOM_POSITION                         95
#define PROPCASE_DISPLAY_MODE                         105 // allways 0 ???
#define PROPCASE_BRACKET_MODE                         29
#define PROPCASE_FLASH_SYNC_CURTAIN 64     //ASM1989  dont know allways 0 ???   anyway sx210 dosnt seam to have one
#define PROPCASE_METERING_MODE 155    //ASM1989  could be goes from 0 1 2
#define PROPCASE_WB_ADJ                               271   // Not sure number changes, but sure prop  270 changes from 0,1,2....
//#define PROPCASE_ASPECT_RATIO          294
#define PROPCASE_ASPECT_RATIO          215  // ASM1989 Testing
#define PROPCASE_TIMER_MODE          225    //ASM1989 looks like  only chages 0, 1, 2
#define PROPCASE_OPTICAL_ZOOM_POSITION        197    //ASM1989 looks like
#endif

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #21 on: 17 / October / 2010, 11:12:31 »
isn't that propset3? if i set that in camera.h overrides seem not working anymore though..

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: IXUS 105 / SD1300 IS porting thread
« Reply #22 on: 17 / October / 2010, 11:18:11 »
No some has changed, at least in sx210, get all the code if you need it here http://es.drop.io/chdk_sx210_rc

I have all the overrides working (except ISO override having the flash activated)

anyway check out also if you have the right stub for apexus2 ,  I try to check it, but with the 4MB bin posted I was unable to get to ffd8f4b8 it ends at  FFC0FFF8 , do you have the 8MB bin file?
« Last Edit: 17 / October / 2010, 11:24:34 by asm1989 »

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #23 on: 17 / October / 2010, 11:33:09 »
with your new propset, compiler is complaining because of missing propcases: PROPCASE_REAL_FOCUS_MODE and PROPCASE_FOCUS_STATE. does this propcase require some special modification of generic/shooting.c or some include/camera.h? i'm now trying with the same settings as sx210 but no luck..?


*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #24 on: 17 / October / 2010, 11:35:47 »
i used a 4mb dump found on chdk wiki page.. maybe i posted the wrong link..?

edit: it's also here http://drop.io/chdkdumps3
« Last Edit: 17 / October / 2010, 11:38:12 by c10ud »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: IXUS 105 / SD1300 IS porting thread
« Reply #25 on: 17 / October / 2010, 11:51:08 »
I dont use PROPCASE_REAL_FOCUS_MODE and PROPCASE_FOCUS_STATE

make a text search through the trunk to find it, or include them manually to make it compile


This is your bin : ixus105_sd1300_100d.7z  ?

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #26 on: 17 / October / 2010, 12:04:53 »
i'm now seeing that i'm using a very old version of trunk, and that part has been removed. i'll try to modify that part and compile to see what will happen

yes, that's the bin firm

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #27 on: 17 / October / 2010, 13:00:10 »
uhm, with latest trunk - and new propset - overrides seem working, still no luck with scripts though. there also must be some wrong stub regarding file handling, i get a crasher when choosing Load script from file..


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: IXUS 105 / SD1300 IS porting thread
« Reply #28 on: 17 / October / 2010, 16:38:27 »
could be, most of the issues come from wrong stubs, compare them to the sx210, since most of the code and calls will be simillar, also dont take for good the auto stubs.

Does you ISO override work with the flash enabled?  it is the only issue with overrides I have in the sx210

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #29 on: 22 / October / 2010, 04:12:15 »
didn't try that yet. however here's a strange thing about the shoot() script:
i tracked down the problem that's hanging that script in core/kbd.c to
Code: [Select]
    KBD_STACK_PUSH(SCRIPT_WAIT_EXPHIST);
    KBD_STACK_PUSH(SCRIPT_PR_WAIT_EXPHIST);
in kbd_sched_shoot(). Looking at the process_script() function i see that SCRIPT_PR_WAIT_EXPHIST is handled like this
Code: [Select]
            case SCRIPT_PR_WAIT_EXPHIST: {
                if (shooting_in_progress() || mvideo) {
                    state_expos_recalculated = 0;
                    histogram_restart();
                    kbd_int_stack_ptr-=1; // pop op.
                }
                return;
            }
If i change the if to an if(1), shooting works. So i investigated shooting_in_progress() in platform/generic/shooting.c, that just returns the value of a property
Code: [Select]
int shooting_in_progress()
{
    int t = 0;
    _GetPropertyCase(PROPCASE_SHOOTING, &t, sizeof(&t));
    return t != 0;
}
in propset3, which is what i'm currently using, that's mapped to
Code: [Select]
#define PROPCASE_SHOOTING      208 and showing the debug props osd i see that 208 effectively changes from 0 to 1 on manual shoot_half.

Any clue?

 

Related Topics