|
From: Ian D. <it....@gm...> - 2011-08-16 15:55:29
|
Hi Safoura, Perhaps we should take this off list, but I have a few ideas. First off, you shouldn't need to touch WeDo_plugin - WeDoMore is the self-contained library. As for the distance - the WeDo is a rather tremendously shoddy piece of electronics. Distance might not work if you've recently used the motors, or my might be calling it too fast. Try using time.sleep to add a delay of a second or two before and after the call. Let me know if that works. Best, -- Ian On Mon, Aug 15, 2011 at 04:03, safoura <s.s...@gm...> wrote: > Hi Ian, > > As I am still trying to get WeDoMore funcs(getDistance()) to work,I thought > of > asking you this question (silly question,sorry!), am I supposed to do any > thing > with WeDo_plugin? I have been only using the WeDoMore.py so far! > > When I run "getDistance()" from the python shell or even a very small > simple > python prog in eclipse , it runs fine but in another program (the program I > am > working on, in eclipse) it always returns the distance, 0!!! > > Could you kindly let me know what you think, I was happy working with it > but now > don't know what to do and have a deadline at the end of Aug!! > Thanks in advance! > > Safi > > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |