A590IS porting... - page 92 - DryOS Development - CHDK Forum

A590IS porting...

  • 968 Replies
  • 439253 Views
Re: A590IS porting...
« Reply #910 on: 27 / July / 2013, 09:44:07 »
Advertisements
Blue LED is set as REMOTE_SYNC_STATUS_LED in attached file, please test it and report.
REMOTE_SYNC_STATUS_LED enables CHDK to activate one of the camera's LED while CHDK is waiting to complete the USB sync operation.  This is for visual confirmation that its waiting for sync only - its not needed for any CHDK function to work and can be safely commented out.

To test,  you will need a USB remote (or the cable that connect your camera to your computer via USB).  Setup CHDK like this : http://chdk.wikia.com/wiki/USB_Remote#Enable_Sync   and shoot by applying power to the USB port ( switch unit or USB PC cable ).   While the power is connected,  the LED indicator you selected with the #define should be illuminated.  It should also turn off when you remove the USB power.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #911 on: 27 / July / 2013, 10:49:56 »
@nafraf, I got the 52 by setting the lens to MF and using lua.
Something like this:

  post_levent_for_npt("PressSw1AndMF")
  set_focus(52)
  sleep(1000)
  shoot()

I can focus to about two inches which is the min according to the camera's manual.

Also, this basic script returns 51:

  press "shoot_half"
  sleep 1000
  get_focus f
  sleep 1000
  print "f: ", f
  sleep 3000
  release "shoot_half"

So it is either 51 or 52. What do you think?
I couldn't set it to 51 from the chdk menu, the min there is 100. Perhaps it should be 51?
Don't know if the infinity value is correct either. The basic script above returns 65535 if I set the lens to infinity in MF and run the script.

@waterwingz, sadly, I don't have a USB remote to test it.

Thanks guys! :)



Re: A590IS porting...
« Reply #912 on: 27 / July / 2013, 11:25:09 »
@waterwingz, sadly, I don't have a USB remote to test it.
All you need is a USB cable suitable for connecting your camera to your PC. Plugging & unplugging the cable does the same thing as pressing the button on a USB remote.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline blackhole

  • *****
  • 949
  • A590IS 101b
    • Planetary astrophotography
Re: A590IS porting...
« Reply #913 on: 27 / July / 2013, 15:04:22 »
@nafraf
@waterwingz
Does not work, LED is not activated.

*

Offline nafraf

  • *****
  • 1308
Re: A590IS porting...
« Reply #914 on: 27 / July / 2013, 18:17:01 »
@blackhole, dvip
To test remote sync status LED, please use this setup on remote parameters menu
Enable Remote [ x ]
Switch Type      [One Push]
Control Mode    [Normal]
Enable Synch   [ x ]

Plug USB cable,  blue LED should turn on. (0xC02200c4    // direct-print (blue) from wiki)
Unplug USB cable, LED should turn off and camera should take a photo.

About CAMERA_MIN_DIST,  52 can be used according to dvip tests.  But I'm not sure about CAMERA_MAX_DIST (could it be >65535?), version in attachment is set up for sdminmax.lua test.  Note that script should be run 4-5 times, and use the largest value.



*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #915 on: 27 / July / 2013, 19:35:13 »
@nafraf,
Using sdminmax.lua  and a590-101b-1.2.0-sdminmax-test.zip
I get:

min 51
max 1


*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #916 on: 27 / July / 2013, 20:02:50 »
>Enable Remote [ x ]
>Switch Type      [One Push]
>Control Mode    [Normal]
>Enable Synch   [ x ]
>
>Plug USB cable,  blue LED should turn on. (0xC02200c4    //
>direct-print (blue) from wiki)
>Unplug USB cable, LED should turn off and camera should take
>a photo.

@nafraf,
The LED (direct-print (blue)) is always off.
The camera does take a shot. So it works fine with the USB cable.

There is no change in the LED (direct-print (blue)) state.
It's always off. Unless you use raw, in that case, it turns on while saving the raw file.

« Last Edit: 27 / July / 2013, 23:18:30 by dvip »

*

Offline blackhole

  • *****
  • 949
  • A590IS 101b
    • Planetary astrophotography
Re: A590IS porting...
« Reply #917 on: 28 / July / 2013, 04:54:05 »
Quote
About CAMERA_MIN_DIST,  52 can be used according to dvip tests.  But I'm not sure about CAMERA_MAX_DIST (could it be >65535?), version in attachment is set up for sdminmax.lua test.  Note that script should be run 4-5 times, and use the largest value.
Photographers point of infinity for a lens calculated by multiplying "f" number of lenses with 1,000."f" number for the A590 is 5.8, so that the point of infinity is 5.8m or 5800mm, which corresponds to those displayed in Canon GUI, where the point of infinity is shown as approximately 6m. In that case 52855 or 65535 are incorrect value if express the distance in millimeters.

*

Offline ahull

  • *****
  • 634
Re: A590IS porting...
« Reply #918 on: 28 / July / 2013, 05:45:02 »
@waterwingz, sadly, I don't have a USB remote to test it.
All you need is a USB cable suitable for connecting your camera to your PC. Plugging & unplugging the cable does the same thing as pressing the button on a USB remote.
... assuming the other end of the USB cable is connected to your PC (and the PC is running), as waterwings suggested.... simply plugging in one end of a USB cable to the camera, and leaving the other end disconnected will have no effect. I presume you understood this, but thought it worth checking.
« Last Edit: 28 / July / 2013, 05:47:15 by ahull »

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #919 on: 28 / July / 2013, 10:01:41 »
@blackhole,
It is still not clear what infinity is for the A590is.
get_focus returns 65535.

@ahull,
As indicated in my previous posting the camera does take a shot. So it works fine with the USB cable.  Plugging and unplugging the cable does the same thing as pressing the button. When doing this, in my case, the direct-print (blue) LED is always off.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal