Bob the Pleo Forums

Pleo Stuff => Pleo Hardware/Software => PDK, Programming, and code => Topic started by: seanstocktonclark on December 26, 2010, 06:46:39 AM

Title: Drive_Example won't build. HELP!
Post by: seanstocktonclark on December 26, 2010, 06:46:39 AM
drive_example is included in the PDK.  It is also the only example that uses commands. 

When I build it, I get the following error: "UnboundLocalError: local variable 'enum' referenced before assignment.

If I replace all "commands" with a single motion, it builds and run properly, so I am sure its related to the commands.  Has anyone else seen this?  Or can someone post a very simple command example to get me started? 

I am on OSX. 
Thanks

Sean
Title: Re: Drive_Example won't build. HELP!
Post by: MannyNZ on December 30, 2010, 03:53:40 PM
Hi,

well i can't tell much, from what you have posted so far. Are you using own enum variables?

So far i managed to write my own little drive-driven behaviours and they work more or less well :)
At least the command using part works ... the get pleo to avoid falling by making edge detection via those
user porperties combined with those leakers, wont work as much is i want them to yet.

So if you like you can post your source here or pm me, and i'll have a look through it, maybe i can find something.

what OS do you use to compile? ( just for interest ^^)

Manny
SimplePortal 2.3.5 © 2008-2012, SimplePortal