Problems object detecting | EdPy Programming | Forum

Please consider registering

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

Problems object detecting
October 24, 2018
12:29 pm
New Member
Forum Posts: 2
Member Since:
April 14, 2018
sp_UserOfflineSmall Offline

Here is our program.

When we run it , it only works sporadically, if all all. Then it might work but only an inch away on one side. We changed batteries and re calibrated. I am assuming we have missed or misunderstood something? 

is there possible value in using a variable , i.e.   x = Ed.ReadObstacleDetection() ……..then saying if x ==  Ed.OBSTACLE_RIGHT   ?


import Ed

Ed.EdisonVersion = Ed.V2

Ed.DistanceUnits = Ed.TIME

#——–Your code below———–

while True:
     Ed.ReadObstacleDetection()               #we put this in extra to see if it helped

     if Ed.ReadObstacleDetection() == Ed.OBSTACLE_RIGHT:
          Ed.Drive(Ed.Ed.BACKWARD, Ed.SPEED_2, 2000)
          Ed.DriveLeftMotor(Ed.FORWARD, Ed.SPEED_2, 2000)

     if Ed.ReadObstacleDetection() == Ed.OBSTACLE_LEFT:
     Ed.Drive(Ed.Ed.BACKWARD, Ed.SPEED_2, 2000)
     Ed.DriveRightMotor(Ed.FORWARD, Ed.SPEED_2, 2000)

  • Keep up with Edison

    Sign up for our newsletter to get all things Edison delivered straight to your inbox.

  • This field is for validation purposes and should be left unchanged.

Heads up

The Australian Federal Parliament has passed a law that extends goods and services tax (GST) to low value imports of physical goods imported by consumers from 1 July 2018.

This means that all customers purchasing Edison robots and accessories with an Australian shipping address must now pay GST. The GST will be automatically added to your purchase and show as a line item on your invoice.

We've detected that you are in Australia, so we wanted to let you know that we have changed your settings to view our Australian site, which displays GST inclusive pricing.

You can change back to the GLOBAL SITE at any time using the link in the top left of the page.

OK got it!    Take me to the GLOBAL SITE instead


Pin It on Pinterest

Share This