Hi,
I tried to define SEQUENCE with:
The script is working now, exept that I do'nt get a menu in terminal for "s" to
stop.
-
def SEQUENCE():
while notDone:
if mindist > us_dist(15):
for (dir
He,
Thank you for making some time for it.
Is this your code ?
I am also using python 3
I got an error with execute the scipt:
---
Enter command> Traceback (most recent call last):
File "test06.py", line 44, in
for (dir, t
Oke, lets try your code.Can you help me with that.
This is my code:
-
from gopigo import *
import time
set_right_speed(150)
set_left_speed(105)
enable_servo()
fwd()
print("forward 1x")
time.sleep(4)
stop()
while True:
servo(90)
mindist = 80
input/ldompel...@casema.nl wrote:
>>The code in capture_key.py may look a bit scary, but just as I took it
>>without bothering the details you can take the resulting module without
>>caring about the code in it. Alternatively you can search
>
>>https://pypi.python.org
>
> Thanks for the link. I
>The code in capture_key.py may look a bit scary, but just as I took it
>without bothering the details you can take the resulting module without
>caring about the code in it. Alternatively you can search
>https://pypi.python.org
Thanks for the link. I realy appreciate it.
Can you also tell me wha
input/ldompel...@casema.nl wrote:
> In reply to "Peter Otten" who wrote the following:
>
>> input/ldompel...@casema.nl wrote:
>>
>> > > choices = raw_input("letter s to stop:")
>> >
>> > Oh no, this is not what I want. Now it is waiting for input when its go
>> > further with the script. Beca
In reply to "Peter Otten" who wrote the following:
> input/ldompel...@casema.nl wrote:
>
> > > choices = raw_input("letter s to stop:")
> >
> > Oh no, this is not what I want. Now it is waiting for input when its go
> > further with the script. Because I have an while True: so I want that the
input/ldompel...@casema.nl wrote:
> > choices = raw_input("letter s to stop:")
>
> Oh no, this is not what I want. Now it is waiting for input when its go
> further with the script. Because I have an while True: so I want that the
> script go's continue only when I press a key then it must sto
In reply to "Peter Otten" who wrote the following:
> input/ldompel...@casema.nl wrote:
>
> > while True:
> > enable_servo()
> > servo(90)
> > mindist = 80
> > choices = input("letter s to stop:")
> > if choices == 's':
> > print ("stop")
> > break
> > if mindis
input/ldompel...@casema.nl wrote:
> while True:
> enable_servo()
> servo(90)
> mindist = 80
> choices = input("letter s to stop:")
> if choices == 's':
> print ("stop")
> break
> if mindist > us_dist(15):
> bwd()
> print ("backward 1x")
> In this script
In reply to "tian.su.y...@gmail.com" who wrote the following:
> =E5=9C=A8 2015=E5=B9=B411=E6=9C=884=E6=97=A5=E6=98=9F=E6=9C=9F=E4=B8=89 UTC=
> -6=E4=B8=8B=E5=8D=883:45:09=EF=BC=8Cinput/ld...@casema.nl=E5=86=99=E9=81=93=
> =EF=BC=9A
> > I have an continues loop with "while True:"
> > Now I want to
在 2015年11月4日星期三 UTC-6下午3:45:09,input/ld...@casema.nl写道:
> I have an continues loop with "while True:"
> Now I want to use "raw_input" and when I press "s" on the keybord that it
> will
> "break" the continues loop.
>
> I tried:
> choices = raw_input
> if choises == s:
> break
>
> But even when
On Thu, 5 Nov 2015 09:37 am, input/ldompel...@casema.nl wrote:
> I quote the s, but its still break even when I not press the s.
The code you have shown us is so full of bugs and typos that you cannot
possibly be running that code.
Unfortunately, we do not have magical powers. We cannot see the
In reply to "Joel Goldstick" who wrote the following:
> On Wed, Nov 4, 2015 at 4:44 PM, wrote:
>
> > I have an continues loop with "while True:"
> > Now I want to use "raw_input" and when I press "s" on the keybord that it
> > will
> > "break" the continues loop.
> >
> > I tried:
> > choices =
On Wed, Nov 4, 2015 at 4:44 PM, wrote:
> I have an continues loop with "while True:"
> Now I want to use "raw_input" and when I press "s" on the keybord that it
> will
> "break" the continues loop.
>
> I tried:
> choices = raw_input
> if choises == s:
> break
>
> But even when I not press "s" it
On Wed, Nov 4, 2015 at 2:44 PM, wrote:
> I have an continues loop with "while True:"
> Now I want to use "raw_input" and when I press "s" on the keybord that it will
> "break" the continues loop.
>
> I tried:
> choices = raw_input
This doesn't call raw_input. For that you need to write raw_input
I have an continues loop with "while True:"
Now I want to use "raw_input" and when I press "s" on the keybord that it will
"break" the continues loop.
I tried:
choices = raw_input
if choises == s:
break
But even when I not press "s" it "break"
I want that I not press "s" the script continues.
A
17 matches
Mail list logo