ixus175_elph180_100c porting attempt - page 7 - DryOS Development - CHDK Forum supplierdeeply

ixus175_elph180_100c porting attempt

  • 201 Replies
  • 60948 Views
Re: ixus175_elph180_100c porting attempt
« Reply #60 on: 23 / April / 2017, 09:00:28 »
Advertisements
@wildbi111 Please try use a link on previous reply. It's far from complete but able to aerial photograph with interval shoot, iso and various feature.  :)

Re: ixus175_elph180_100c porting attempt
« Reply #61 on: 23 / April / 2017, 19:46:38 »
@tsamma - OK, well this was the 1st time I've used CHDK and struggled a little getting it to run but once I "locked" the SD card it came up just fine.  It was a little bit of a learning curve finding the <alt> & <chdk> menus but I finally did get that figured out.  Then I loaded the interval script tested it with 1 & 2 minute interval settings and it worked great.  One issue is each time it took two pictures rather than one and I couldn't find a setting that would let it just take one image at a time.  Also, the LCD stays on the whole time which will be a drain on the battery.  But all in all it does exactly what we need.  Great Job!!!

So any suggestions on how to prevent two images being taken each time and a suggestion on how to turn off the LCD when the script is running would be appreciated.

Re: ixus175_elph180_100c porting attempt
« Reply #62 on: 24 / April / 2017, 10:28:40 »
Please use script like this
Quote
press('shoot_half')
sleep(500)
press('shoot_full')
sleep(100)
release('shoot_full')

I' can't to turn off LCD with set_lcd_display even though review off. May be require some experiment to script. if long interval like 1 or 2 minute try to turn off lcd after shooting everytime.
« Last Edit: 24 / April / 2017, 10:36:12 by tsamma »

Re: ixus175_elph180_100c porting attempt
« Reply #63 on: 25 / April / 2017, 17:23:49 »
Quote
press('shoot_half')
sleep(500)
press('shoot_full')
sleep(100)
release('shoot_full')

So does the sleep(500) and sleep(100) turn off the LCD screen?


Re: ixus175_elph180_100c porting attempt
« Reply #64 on: 25 / April / 2017, 19:12:55 »
Here is the script thus far:

Code: [Select]
@title RHAB
@chdk_version 1.0
@param a = interval (sec)
@default a 60
x = 0
do

s = get_tick_count
shoot
    sleep a*1000 - (get_tick_count - s)
x = x + 1
sleep(500)

until x = 180

Re: ixus175_elph180_100c porting attempt
« Reply #65 on: 25 / April / 2017, 20:16:01 »
Here is the script thus far:
Code: [Select]
@title RHAB
@chdk_version 1.0
@param a = interval (sec)
@default a 60
@param c = shots
@default c 180
x = 0
do
    s = get_tick_count
    press "shoot_half"
    do
        sleep 50
    until get_shooting = 1
    click "shoot_full"
    sleep 500
    release "shoot_half"
    sleep 2000
    set_backlight 0
    sleep a*1000 - (get_tick_count - s)
    x = x + 1
until x = c
set_backlight 1

edit : the sleep 2000 before the set_backlight 0 statement is a bit temperamental.  On my A1200 setting it to sleep 1000 stopped the backlight from turning off.  YMMV.
« Last Edit: 25 / April / 2017, 21:20:09 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4055
Re: ixus175_elph180_100c porting attempt
« Reply #66 on: 26 / April / 2017, 13:44:50 »
@WW
set_backlight has no effect on this camera (the firmware function was removed from the firmware)

@tsamma
It's possible that PROPCASE_SHOOTING_STATE is not 361 on this camera. Try finding out whether this is the case.
See reyalp's comments from platform/generic/wrappers.c :
Code: [Select]
// workaround for missing PROPCASE_SHOOTING
#if CAM_PROPSET == 7 || CAM_PROPSET == 9 || CAM_PROPSET == 10
    if(id==PROPCASE_SHOOTING) {
        int r=_GetPropertyCase(PROPCASE_SHOOTING_STATE, buf, bufsize);
        // 1 50ms after half press, 2 after exp hook, 3 while shooting
        // propset 6 has similar procase id 351, goes 3->0 when get_shooting goes false
        // propset 4 and 5 id 352 is similar but only goes to 2
        // (4 per https://chdk.setepontos.com/index.php?topic=11604.msg113712#msg113712)
        if(*(char *)buf > 1) {
            *(char *)buf = 1;
        } else {
            *(char *)buf = 0;
        }
        return r;
    }
#endif

ixus175_elph180_100c porting attempt
« Reply #67 on: 26 / April / 2017, 14:54:51 »
I didn't read far enough back so I thought the issue was with set_LCD_display( )?

Apparently neither function works then?
« Last Edit: 26 / April / 2017, 14:57:39 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline srsa_4c

  • ******
  • 4055
Re: ixus175_elph180_100c porting attempt
« Reply #68 on: 26 / April / 2017, 15:02:10 »
I didn't read far enough back so I thought the issue was with set_LCD_display( )?
No. It was set_backlight. This is why:
Code: [Select]
NSTUB(DispCon_TurnOnBackLight_FW, 0xff866c9c):
ff866c9c: e3a00000 mov r0, #0
ff866ca0: e12fff1e bx lr

Re: ixus175_elph180_100c porting attempt
« Reply #69 on: 26 / April / 2017, 15:07:07 »
I didn't read far enough back so I thought the issue was with set_LCD_display( )?
No. It was set_backlight. This is why:
Code: [Select]
NSTUB(DispCon_TurnOnBackLight_FW, 0xff866c9c):
ff866c9c: e3a00000 mov r0, #0
ff866ca0: e12fff1e bx lr
It would be most interesting if that code turned the backlight off. :P

But there is still this comment.
I' can't to turn off LCD with set_lcd_display even though review off.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics