Powershot N Porting Thread - page 20 - DryOS Development - CHDK Forum  

Powershot N Porting Thread

  • 212 Replies
  • 89265 Views
Re: Powershot N Porting Thread
« Reply #190 on: 24 / August / 2016, 00:11:09 »
Advertisements
This is KAP/UAV related...
Well, as it seems that the same person did the Powershot N port and the kap_uav.lua script I guess that's okay.

Quote
The LED shutter sync is working, but there is a second LED "blink" that occurs after the 1st. It also happens when LED shutter sync is disabled. Its delayed by what looks like .5 seconds or so from the shutter closing. How can I turn this off? any ideas?
Sounds like the second blink is a Canon thing.  No easy way to kill that I'm afraid. It happens even when CHDK is not loaded.

Quote
Its interesting that the LED that syncs is on the side by the power button! :) I didn't expect that I kept looking at the one on the front expecting that one to light up. Thought I was doing something wrong at 1st :)
You might have been doing something wrong. In the kap_uav.lua script parameters  (the ones you can adjust via the CHDK Script menu) there is an option called Shot Sync LED.   That should let you pick which LED sends the "sync" signal.  Did you try that?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Powershot N Porting Thread
« Reply #191 on: 24 / August / 2016, 00:59:48 »

You might have been doing something wrong. In the kap_uav.lua script parameters  (the ones you can adjust via the CHDK Script menu) there is an option called Shot Sync LED.   That should let you pick which LED sends the "sync" signal.  Did you try that?



I was messing around with "Shot Sync LED", the options are "off and 1-15". I set it to 1.


This is to specify which LED on the camera sends the signal? That makes more sense. I thought it was for the number of blinks or something like that. I don't know why one would need 15 blinks, lol.


I will reconnect the screen and mess around with the other options in Shot Sync LED and see if I can get the one on the front to make the signal.


Thanks for the response!

*

Offline reyalp

  • ******
  • 14114
Re: Powershot N Porting Thread
« Reply #192 on: 24 / August / 2016, 01:59:00 »
This is to specify which LED on the camera sends the signal?
Normally it would, but it seems waterwingz has some unfinished business in the N port ;). It only uses the one LED:
Code: [Select]
void camera_set_led(int led, int state, int bright) { debug_led(state) ; }

LEDDrive is found by the sig finder, so fixing it may be pretty straightforward.
Don't forget what the H stands for.

Re: Powershot N Porting Thread
« Reply #193 on: 24 / August / 2016, 07:14:05 »
Normally it would, but it seems waterwingz has some unfinished business in the N port ;). It only uses the one LED:
The N only really has one "LED" - the small green one on the power button. The lamp on the front is actually the camera's flash. So I did not consider it when I did the port, IIRC.   

However, I just took a closer look and while it functions as a camera flash by firing several times quickly in low light situations (a poor man's flash in other words) it also serves as a focus assist lamp during a half-press.  So maybe it can be accessed through LEDDrive?  I'll take a look later today.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Powershot N Porting Thread
« Reply #194 on: 24 / August / 2016, 09:46:39 »
@waterwingz

That would be fantastic if the flash/led could be used. It would greatly simplify the addition of my phototransistor. I'll check back later to see if you had any success. Thanks for giving it a look. A lot of this code work is a bit above my pay grade ;)

Re: Powershot N Porting Thread
« Reply #195 on: 24 / August / 2016, 23:23:11 »
That would be fantastic if the flash/led could be used. It would greatly simplify the addition of my phototransistor. I'll check back later to see if you had any success.
New build attached.  I've tested on one of my N's and it works well.

This change enables 3 LED options for the set_led(led#,state,brightness) function, where led# is 0 for the green power button LED,  1 for focus assist mode on the front lamp (dim), or 2 for "camera flash" mode of the front lamp (bright).   state is 0 for off, 1 for on.  As per current convention for everything but the oldest Powershots, brightness is ignored.

I briefly considered having only two valid led# values and using the brightness parameter to determine off/dim/bright for the focus assist/flash lamp. But then I decided I was just being fancy and left it with three led# choices.

Patch file posted in the appropriate place so that this gets into the autobuild in the next couple of days.

Quote
Thanks for giving it a look. A lot of this code work is a bit above my pay grade ;)
Given the compensation model for working on CHDK (zero dollars,  a lifetime of fun), I'm not sure there is anything below or above our pay grades  8)
« Last Edit: 24 / August / 2016, 23:24:53 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Powershot N Porting Thread
« Reply #196 on: 25 / August / 2016, 11:16:33 »
Yew! excellent work @waterwingz :)


I will get this loaded up and report back with results.


I wish my coding skillz were more robust so I could contribute more.


TThanks again for adding this feature. You're the man! ::)

Re: Powershot N Porting Thread
« Reply #197 on: 26 / August / 2016, 22:40:51 »
@waterwingz your mod to led code worked perfectly! :) thanks again, you are the man.


*

Offline reyalp

  • ******
  • 14114
Re: Powershot N Porting Thread
« Reply #198 on: 02 / November / 2020, 00:10:15 »
@waterwingz Here's a patch that disables the video quality option. May as well avoid confusing people with a non-working option and save a few bytes. I was going to just check it in, but if you can confirm it still works that would be appreciated :)

I suspect for the option to work, it would need code like some other propset 6 / later cameras (like ixus150). My recollection from ixus140 is that the simpler code like in the N just changed the first frame of the video.
Don't forget what the H stands for.

Re: Powershot N Porting Thread
« Reply #199 on: 04 / November / 2020, 21:23:14 »
@waterwingz Here's a patch that disables the video quality option. May as well avoid confusing people with a non-working option and save a few bytes. I was going to just check it in, but if you can confirm it still works that would be appreciated :)
Loads and runs fine.  Confirmed the Video menu now has only two options (OSD runtime related).  I tested video recording and it still works, as do the those OSD options.

Quote
I suspect for the option to work, it would need code like some other propset 6 / later cameras (like ixus150). My recollection from ixus140 is that the simpler code like in the N just changed the first frame of the video.
Thanks for the hint but I think that I'll put it on the roundtuit list somewhere near the bottom for now.  Unless someone shows up and really wants the video ability.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal