GLOBAL SITE AUSTRALIAN SITE

Help - Line tracker with events | EdWare graphical programming | Forum

Please consider registering
guest

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

Topic3
Help - Line tracker with events
December 8, 2017
3:12 am
Texas
Member
Members
Forum Posts: 26
Member Since:
November 10, 2017
sp_UserOfflineSmall Offline

I’d like to have a lesson on a program with events.  I thought I would do this with the line tracking being the main program, then auto lights and obstacle detection as two different event programs.

The automatic lights works fine.  But I can’t get the obstacle detection to work.  I want Eddy to stop for a bit if it detects an obstacle.  I’ve tried with and without the blue detect obstacle icon. The following program uses a variable, but I also tried it with the action, if obstacle.

Thanks for your help.

http://www.edwareapp.com/share/zUhMb

December 11, 2017
4:09 pm
Ben
Admin
Forum Posts: 179
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

Hi

From a quick look at your code the IF statement in the obstacle start event is not needed.

The start event will only run when an obstacle is in front of Edison. However, it might improve the reliability of the program to change it from “obstacle ahead” to “any obstacle”

December 12, 2017
3:50 am
Texas
Member
Members
Forum Posts: 26
Member Since:
November 10, 2017
sp_UserOfflineSmall Offline

That makes sense.  The start event is basically an IF loop that runs in the background, right? 

December 12, 2017
10:27 am
Ben
Admin
Forum Posts: 179
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

Basically yes, it runs in the background and interrupts the main program when its conditions are met.

Once the blocks after the start event are finished Edison jumps back to where it left off in the main program

  • 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

Country

Pin It on Pinterest

Share This