Wheel commands in G9 Script - Script Writing - CHDK Forum  

Wheel commands in G9 Script

  • 2 Replies
Wheel commands in G9 Script
« on: 17 / January / 2009, 20:20:37 »
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

sleep 1000
print "Preparing..."
for n=1 to a
next n
for n=1 to a*b
   print "shot" n
next n
« 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 »
I added sleep 20 after each wheel motion and sleep 200 after each sutter action.  Probably overkill, but it worked.



Related Topics