SX50 HS porting thread - page 26 - DryOS Development - CHDK Forum supplierdeeply

SX50 HS porting thread

  • 350 Replies
  • 102141 Views
Re: SX50 HS porting thread
« Reply #250 on: 06 / April / 2013, 17:55:03 »
Advertisements
It never rains - it pours.

Same user over on the dpreview forums has found that the SX50 in "Sports Mode" does not play nicely with CHDK :

http://www.dpreview.com/forums/post/51240472
Quote
Maybe it would be prudent to also ask why when you move the dial to sports mode and attempt to take a picture it crashes the camera too?

ROMLOG & main.bin.dump attached :
« Last Edit: 06 / April / 2013, 18:29:11 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline lapser

  • *****
  • 1093
Re: SX50 HS porting thread
« Reply #251 on: 06 / April / 2013, 19:42:06 »
Done.  Submitting a patch now.

http://chdk.setepontos.com/index.php?topic=650.msg98902#msg98902
It works on the sx260 and sx50, including disabling the histogram on/off shortcut on the sx50.

I seem to have trouble getting some of the shortcuts to work, even before this patch, though. The shortcuts documentation is pretty sparse, which is one of the reasons I haven't used them. In any event, it's nice to be able to disable them completely.

Quote
Maybe it would be prudent to also ask why when you move the dial to sports mode and attempt to take a picture it crashes the camera too?
Works fine for me, without any CHDK overrides. I wonder if he was overriding anything?

Maybe if he disables overrides it would work in sports mode? Sports mode pretty much sets all the exposure parameters, so that may be the conflict. It also defaults to continuous mode with auto_focus, so a focus override might cause problems.
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

Re: SX50 HS porting thread
« Reply #252 on: 06 / April / 2013, 19:46:29 »
Works fine for me, without any CHDK overrides. I wonder if he was overriding anything?

Maybe if he disables overrides it would work in sports mode? Sports mode pretty much sets all the exposure parameters, so that may be the conflict. It also defaults to continuous mode with auto_focus, so a focus override might cause problems.
Works for you?  Strange - for me it crashes right after it takes a picture when the mode dial is in sports mode.  I have 1.00c but the OP had 1.00b so its not version related.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 13231
Re: SX50 HS porting thread
« Reply #253 on: 06 / April / 2013, 20:13:07 »
quick annotation of the stack trace, FWIW
Code: [Select]
StackDump:
0x00000000
0xFF1F5ACC
0x000001E3
0x00043A5C
0x00000001
0x00043FA0
0x00000000
0x0000A424
0x00000000
0x19980218
0x19980218
0xFF1F5940 <- assert call
0x0000019C
0x00043A5C
0x0000420D
0x00043FA0
0x00000000
0x19980218
0x19980218
0x001BF3E0 <- capt_seq.c loc_FF1F5FC4
0x44B9BC80
0x00043FA0
0x00043FA0
0x00043A5C
0x00003A9C
0x001BF144 <- capt_seq.c sub_FF1F5D70_my call
0x00043FA0
0x00043E60
0x00000000
0x001BEEC4
0x00043E10
0x0055E468
0x19980218
0x19980218
0x19980218
0x00687418
0x19980218
0x19980218
0x00000208
Don't forget what the H stands for.


*

Offline bojofbas

  • *
  • 22
  • SX50 100b
Re: SX50 HS porting thread
« Reply #254 on: 11 / April / 2013, 07:18:41 »
See below old post but still occuring with latest build

with MF Safety focus "off" the camara crashes




Quote from: ERR99 on 22 / November / 2012, 03:37:32



Quote from: bojofbas on 21 / November / 2012, 21:33:02

The above seems to be an issue with MF mode as other continous bracketing on CHDK ( eg Av & Tv) works OK. Also when running scripts like MFDOF , if you set camera to MF mode it  crashes once it starts taking photos.  If you do not switch to MF , the script runs and completes with no crashes , but of couse you dont get  end result required as no change in focus as script need it to be in MF mode.   Hpe this helps to point to the root cause





The crash here comes from the canon firmware (Assert) when CHDK tries to set the focus_distance. If MF + Safetyfocus=OFF is active, then the CANON Firmware throws this assert (No crash with Safety Focus=ON). Currently i'm not sure how to fix this, until now I cant find something wrong in the port.



OK,

have managed to get continuous bracketing for DOF working by ensuring Safety focus is on (Although documentation say this should be off, but seem to work anyway). This is s good stop gap and allows my macro photography with the SX50...... Thanks

*

Offline lapser

  • *****
  • 1093
Re: SX50 HS porting thread
« Reply #255 on: 11 / April / 2013, 14:27:05 »
with MF Safety focus "off" the camara crashes
set_focus() crashes my other cameras in half_shoot as well. Since the CHDK bracketing in continuous mode options are done in half_shoot, I don't think there's a way around this problem.

Safety manual focus is just autofocus, possibly within a range set by the manual focus. It doesn't crash the camera, but I don't think it focuses correctly either, although it's been awhile since I checked.

So I don't think focus bracketing in continuous mode will work. For focus bracketing, you'll need to use a script, in manual focus with safety off, that does:

set_focus(d)
shoot()

You might want to look at this topic, where we were working on a bug in shoot(), which was fixed, using a focus bracketing script. I think the script worked better than the bracketing in CHDK because it did logarithmic changes in focus instead of linear.

http://chdk.setepontos.com/index.php?topic=9118.0
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

*

Offline bojofbas

  • *
  • 22
  • SX50 100b
Re: SX50 HS porting thread
« Reply #256 on: 11 / April / 2013, 18:09:39 »

So I don't think focus bracketing in continuous mode will work. For focus bracketing, you'll need to use a script, in manual focus with safety off, that does:

set_focus(d)
shoot()


I do use a script  together with MF , Continuous shoot and it seem to work OK with Safety On, but crashes with Safety off. With safety On it still seem to advance focusing correctly and I have been able to do macro stacking with it. I may look at the script to see if it employs  the above. 


*

Offline bojofbas

  • *
  • 22
  • SX50 100b
Re: SX50 HS porting thread
« Reply #257 on: 12 / April / 2013, 04:56:16 »

So I don't think focus bracketing in continuous mode will work. For focus bracketing, you'll need to use a script, in manual focus with safety off, that does:

set_focus(d)
shoot()


I do use a script  together with MF , Continuous shoot and it seem to work OK with Safety On, but crashes with Safety off. With safety On it still seem to advance focusing correctly and I have been able to do macro stacking with it. I may look at the script to see if it employs  the above.

Sorry bit off Topic ( so will be last comment on this)  but this is simple continuos shoot  script I use when using the DOF bracking within CHDK, and as stated seems to work if Saftey is "ON".  Any way to add to it to overcome the need for "safety on"

@title Continuous for N seconds
@param a Seconds
@default a 30
@param g delay 1st shot (sec)
@default g 5
rem optional sleep here to wait a bit before we start continuous shooting
press "shoot_half"
press "shoot_full"
sleep a*1000
release "shoot_full"
release "shoot_half"
end

CHDK settings
bracketing in continious mode -Subj. Disk Bracket (on) with variuous distiance  settings dependant on macro lens  etc
Bracketing type "+"  ( tend to focus on nearest point of subject and let script and CHDK to focus furhter away to build up a set of pictures to stack.

Camera  with MF, safty on continous shoot.
« Last Edit: 12 / April / 2013, 07:21:33 by bojofbas »


*

Offline lapser

  • *****
  • 1093
Re: SX50 HS porting thread
« Reply #258 on: 14 / April / 2013, 01:21:38 »
Camera  with MF, safty on continous shoot.
That script just holds the shutter down for a set time, the same as you would hold it down with your finger, and uses the CHDK bracketing code, not the script.

The main advantage of using this script is that it gets your hand off the camera so it doesn't shake. But it will only work with safety manual focus as you're doing it.

On another topic, Jupiter is still visible for a little while after sunset, but not for long. I  got some more shots of it with the sx50, including all 4 moons this time. I had some trouble getting the right exposure. Maybe next time I'll use the CHDK exposure bracketing in continuous mode feature.
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

*

Offline bojofbas

  • *
  • 22
  • SX50 100b
Re: SX50 HS porting thread
« Reply #259 on: 14 / April / 2013, 03:20:33 »
Camera  with MF, safty on continous shoot.
That script just holds the shutter down for a set time, the same as you would hold it down with your finger, and uses the CHDK bracketing code, not the script.

The main advantage of using this script is that it gets your hand off the camera so it doesn't shake. But it will only work with safety manual focus as you're doing it.

Thanks... yep as that works I will use it with saftey On, less complax than a DoF script, one of which I have yet to find that meets my needs ( ie macro focus within a 5-10mm range).
« Last Edit: 14 / April / 2013, 03:22:29 by bojofbas »

 

Related Topics