Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Joel Goldstick Newsgroups: comp.lang.python Subject: Re: GoPiGo distence sensor Date: Wed, 15 Jun 2016 10:59:47 -0400 Lines: 19 Message-ID: References: <24fc1dae-5411-44fa-89e2-d2859d27594f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de UPw6finjStcW0mm8FQk0UgwRm/ss5dEGaymyi2ru6wBw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.048 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'api': 0.09; 'cc:addr :python-list': 0.09; 'url:blog': 0.10; 'python.': 0.11; 'wed,': 0.15; '10:15': 0.16; '2016': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; 'url:mailman': 0.30; '15,': 0.30; 'seconds': 0.31; 'url:python': 0.33; 'url:listinfo': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'received:209': 0.38; 'someone': 0.38; 'received:209.85.214': 0.39; 'url:mail': 0.40; 'here:': 0.63; 'url:info': 0.71; 'url:programming': 0.84; 'wheels': 0.84; 'to:none': 0.91; 'joel': 0.91; 'robot': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=1dFqbb4ep0F516HH1ndH12VYWn1r7AAw6ZDDRxLZTfk=; b=Sd6bZb/p4zCMJOfM1OqWYwAB5jZU0431qS1D7oPTDW1zUA1GrAh8tpzkU8rosZlEqW c801Ci0b7B8FPyM7z0ZyktEkuhNdrZ8OUawFXKxFsXsHJcM3CmuTbN77SrnT8Y5bMu0/ gnn+ebrxoa2MhBUB9oZnfPgL+tY9UiJ0AmpoeSDBhsoDDWKUXFpwq1qkcH1waFjFRYN3 pKGL+CJFXacjiVZc/FJMemyy8xTMDXDuGdOQ9LbmYDXJaXf5oycy5/Ip3vkIWyrRAgeb 1kFM6HbrUtTG3lJGVAgTH5KiElgrj6Gz0fbPEbl8PvAx5icf2uyyjFhxxUB9LxbTKIZt +NMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=1dFqbb4ep0F516HH1ndH12VYWn1r7AAw6ZDDRxLZTfk=; b=H/Ri1nQKv8j5alLc6xb6E4yGH4L2zyQmN710xkXBO0zCt6Nho6qJAHJWAHLw2zfVYY ZI/GoKQ0h0GLXgbuXIqbx3NlIy6HomHpikLc7t2T4ZnB38qGghNMvoFEfAhN2fAoU2ie svhW31JyrgZ/ahKLkD1I7L/SjTZVi/hF8VnQFPE6IA6gpDrZ39vjmPOegKL3SvIMTIf4 BHGQoy80uaP+yg4Hy/Xvd47tCHa0SE1LZPIymHzNw4aZ6iQrs95K+lpmWl/nO/WCt2Dh uZ2RbzBaTyF5GOoTKGJkOmrtnPon4rwiI++mThW7CjT8DQFgAT0pFRhVovT/EuGQLhWf 671A== X-Gm-Message-State: ALyK8tJRYzq6FRY1BpIvhYUvqZ230us0xxRDRt99cepyXUOdfAPp5LeKhKc/sbMxoaZPKBvY2AN8oadVitw7iQ== X-Received: by 10.202.199.66 with SMTP id x63mr14041692oif.177.1466002787700; Wed, 15 Jun 2016 07:59:47 -0700 (PDT) In-Reply-To: <24fc1dae-5411-44fa-89e2-d2859d27594f@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <24fc1dae-5411-44fa-89e2-d2859d27594f@googlegroups.com> Xref: csiph.com comp.lang.python:109976 On Wed, Jun 15, 2016 at 10:15 AM, wrote: > I have a small robot on wheels named the GoPiGo. > What I want is if the distence sensor read the same distence for let say 5 seconds then the GoPiGo go's backward. > > But I don't now how to program this in python. > The Api functions for the GoPiGo are here: http://www.dexterindustries.com/GoPiGo/programming/python-programming-for-the-raspberry-pi-gopigo/ > > Can someone help me with this. > > -- > https://mail.python.org/mailman/listinfo/python-list You can start here: https://www.python.org/about/gettingstarted/ -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays