GLOBAL SITE AUSTRALIAN SITE

Second Start Event in Sumo-Wrestle | 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
Second Start Event in Sumo-Wrestle
December 9, 2017
5:38 am
Texas
Member
Members
Forum Posts: 26
Member Since:
November 10, 2017
sp_UserOfflineSmall Offline

Can you explain this subroutine?  Why did you put it here and not in the previous start event?

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

The blocks after a start event happen as soon as the event set in the block occurs.

In the sumo code:

the first start event is set to “line tracker on non-reflective surface” this is the code that turns Edison around as soon as Edison runs over the black line

The Second start event is set to “Countdown timer-finished” the countdown timer is a timer that can be set to run in the background and can trigger start events. In this case its used to cause Edison to turn around every 4 seconds, to add a little “randomness” to the program

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

That’s why I thought it seemed so random…

So this program:

1.  Has Edison driver randomly in a border, backing away and turning if it sees the border

2.  If it happens to see an object, it goes full speed towards the object

Is that right?  I know from experience that every time I think I can wing it and not fully understand the program, that’s when a kid will ask a detailed question. 

Thanks for your help!

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

Thats correct!

The main program deals with finding objects and going full speed towards them.

the first start event keeps Edison inside the line by backing up and turning around 

and the second start event adds a little bit of randomness to the program so it behaves differently each time

  • 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