1st script problem:set zoom speed - Script Writing - CHDK Forum

1st script problem:set zoom speed

  • 7 Replies
  • 4558 Views
1st script problem:set zoom speed
« on: 03 / May / 2010, 01:58:07 »
Advertisements
Just wrote my first ubasic script:

@title Set Zoom Speed
@param a Speed
@default a 30
rem speed can be from 10% to 100% of max zoom speed
if a<10 then let a=10
set_zoom_speed a

I loaded it into my sx100is using chdk ver 8.9.9-884
When loaded, the zoom quits working.
Any tips or hints?
R

Re: 1st script problem:set zoom speed
« Reply #1 on: 03 / May / 2010, 01:59:51 »
Read a bit further.
I need an 'end' statement don't I.

Re: 1st script problem:set zoom speed
« Reply #2 on: 03 / May / 2010, 02:06:37 »
Hmmm...   end   didn't seem to help.
The script is now

@title Set Zoom Speed
@param a Speed
@default a 30
rem speed can be from 10% to 100% of max zoom speed
if a<10 then let a=10
set_zoom_speed a
end

Re: 1st script problem:set zoom speed
« Reply #3 on: 03 / May / 2010, 06:33:05 »
Hmmm...   end   didn't seem to help.

In the CHDK code it says  :-

NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00958) // null stub

That means the coder could not find the corresponding Canon firmware function ... which means that it does not work.  :(



david


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: 1st script problem:set zoom speed
« Reply #4 on: 03 / May / 2010, 06:55:39 »
does the sx100 have a USM motor? could not find information about that. but it might just be possible that it doesnt support setting zoomspeed. the s-series (s3is, s5is etc) have written USM on the front lens and they support this command. they also have like 128 zoom steps as opposed to like 8 steps in a typical ixus camera. sx100 has 10x zoom, so i guess there are more steps and there COULD be a speed setting, dunno.

Re: 1st script problem:set zoom speed
« Reply #5 on: 03 / May / 2010, 10:50:54 »
This is all very interesting.
I don't see USM on the camera housing anywhere.

Re: 1st script problem:set zoom speed
« Reply #6 on: 03 / May / 2010, 12:37:20 »
...so do the guys that code the chdk examine the firmware code in these cameras and write wrapper functions for them?
How does one examine the firmware?  Are the contents in some readable form or is it hex?  Is there a page that describes this?
I'm very impressed by all this.

*

Offline fe50

  • ******
  • 3147
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: 1st script problem:set zoom speed
« Reply #7 on: 04 / May / 2010, 01:05:26 »
AFAIK the SX100 has a "usual" 23 step zoom motor, no USM, only one zoom speed.
If this camera would be equipped with an USM motor, zooming while video recording would have been enabled by Canon, as on other Powershots...

...so do the guys that code the chdk examine the firmware code in these cameras and write wrapper functions for them?
Yes.

Quote
How does one examine the firmware?  Are the contents in some readable form or is it hex?  Is there a page that describes this?
--> http://chdk.wikia.com/wiki/For_Developers


 

Related Topics