SX100 - zoom commands crash camera? - Script Writing - CHDK Forum

SX100 - zoom commands crash camera?

  • 2 Replies
  • 2253 Views
*

Offline Anaglyphic

  • ***
  • 129
  • Anaglyphic lives!
SX100 - zoom commands crash camera?
« on: 16 / August / 2009, 14:10:11 »
Advertisements
Hey.

sx100-100c-rev788

The short of it is that zoom commands crash the camera on rev 788 and autobuild. Don't know if it's regression or what.

I would bet money this was working before, back when Fudgey was playing around with the zoom-while-shooting LUA script. It's not a function I have ever needed besides playing around, but it did work previously. I know it. I have silly zoomy images around here somewhere. But this weekend I had an actual use for it, and attempt to move the zoom crashes the camera. And what's really fun is it crashes after it actually moves the lens.

Free memory is 750,248 bytes on rev788. My install is "full" for sure; firmware extracted stubs, fi2'd (not a feature I need with autobooting and SDHC support, just wanted to prove Memset's / ewavr's fi2 thingie worked), blah blah blah... so you'd think if it's gonna work, it'd work here. Nope.

So OK fine, feeces occurs, let's start clean: grab a SD, wipe it, partition it, format it, hexedit it, pull svn into a fresh directory, replace PRIMARY.BIN, make fir, copy, write a very short uBasic script (set_zoom 0, sleep 1000, set_zoom 10) and just in case it's host-related, an equally short LUA (same 3 commands but added get_zoom()) & get_zoom_steps())...  lock it, boot it, and --- and crash it. Both scripts, repeatedly. If it's -at- 0, then it doesn't crash on first command, but does on 2nd. After it moves the lens it's lights out. The LUA one can query the zoom location and steps correctly, so it's getting at least some of the propcases right. No other CHDK function is misbehaving... I bracketed 50 each of Tv, Sv, Av... MDFB & motion_detect, etc. Nothing wrong. Just this zoom thing.

If you have an SX100, especially 100c, would you do me a favor and see if you can change zoom via a script? Here's a simple one:

SX100GAK.LUA
Code: (lua) [Select]
--[[
@title Zoom Bracket SX100IS FAIL
rem is probably Anaglyphic's FAIL
--]]
max_zoom = get_zoom_steps()
cur_zoom = get_zoom()

print ("  Zoom steps: " .. max_zoom)
print ("Currently at: " .. cur_zoom)
sleep (1000)

for cur_zoom = 0, max_zoom do
  print ("     Zoom to: " .. cur_zoom .. " =>")
  set_zoom (cur_zoom)
  sleep (250)
  print (" Taking shot: " .. cur_zoom .. " of " .. max_zoom)
  shoot()
  sleep (2000)
end

print ("<press shutter to restart>")
Since we cannot know all that there is to be known about anything,
 we ought to know a little about everything.
-- Blaise Pascal

*

Offline Mac

  • *
  • 40
Re: SX100 - zoom commands crash camera?
« Reply #1 on: 16 / August / 2009, 18:20:09 »
Hi!
Try putting the camera in 'mf'.
Have similiar problem with S2is and S5is.

*

Offline Anaglyphic

  • ***
  • 129
  • Anaglyphic lives!
Re: SX100 - zoom commands crash camera?
« Reply #2 on: 17 / August / 2009, 11:31:07 »
:D

Yes, Mac. (It's in Manual mode with manual focus at infinity (via the interface) I played with really long delays thinking it was a cycle-time related, but even 10s pauses between each command... it moves the lens, and dies before getting to the next line. If I setup a logfile= the last line would be "zooming to x".

This is the most times I've popped a memory card in & out since the SX100 was ported... Blah. I don't need it now, the time has past, but it's going to drive me OCD-nuts if I can't... must... must fix... must fix now...
Since we cannot know all that there is to be known about anything,
 we ought to know a little about everything.
-- Blaise Pascal

 

Related Topics