Wheel commands in G9 Script - Script Writing - CHDK Forum

Wheel commands in G9 Script

  • 2 Replies
  • 1874 Views
Wheel commands in G9 Script
« on: 17 / January / 2009, 20:20:37 »
Advertisements
I am new to scrpting so this isuues may simply be a "beginner" problem.  I have not been able to get the commands wheel_left and wheel_right to work properly.  The wheel will move once or twice duing execution of the scipt.  In this case one click left.  Is this a timing issue?  Perhaps a bug in the wheel comand?  Can someone with a G9 or G7 reprodce the problem?

@title Wheel test
@param a Number of steps
@default a 2
@param b Step size
@default b 2

a=2
b=2
sleep 1000
print "Preparing..."
for n=1 to a
   wheel_right
next n
for n=1 to a*b
   shoot
   print "shot" n
   wheel_left
next n
end
« Last Edit: 17 / January / 2009, 20:35:44 by bwebb »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Wheel commands in G9
« Reply #1 on: 17 / January / 2009, 20:35:38 »
Try to add "sleep 10" or "sleep 100" command after "wheel" commands, it helps on G7 (if I remember correctly).

Re: Wheel commands in G9 Script
« Reply #2 on: 18 / January / 2009, 15:57:45 »
thanks. 
I added sleep 20 after each wheel motion and sleep 200 after each sutter action.  Probably overkill, but it worked.

Bill

 

Related Topics