Week 5 – 2019 – James

Hi guys, today I worked on the junior competition requirements for the Robocup Jr junior competition.

Here are the tiles you’ll have to complete in the junior competition.

The tiles in the robocup Jr primary competition.

Some time ago I think I had a photo of my 2 sensor line follower. But this time I’ve made the line follower even better. Here’s what I did…

Firstly, in the senior competition there are those green hints. I added a variable called “use_green_hints”. I used that to look for the hints if I turned the variable setting to true. If I put it to false, the robot would not be looking for hints. This would be useful because in the junior competition, there are no hints. But if you compare that to the senior competition, there are hints.

With that true or false variable, I put it in to my ‘Declare Variables’ ‘My Block’ along with the speed and turn speed variables, as you can see below on the far right.

The new variable is a true or false block so you can turn things on and off like this case for instance.

You can see the code below for using the true or false block where that green line is leading to.

The code for turning the hint finder on or off. (The blocks after the “use hint” comment are not necessary but the code still works.

There will be a ramp included in the competition but we don’t have one yet. It should be made sometime soon though.

That’s it for today’s post, so now i’ll give you the word and phrase of the day.

Lionize: To treat someone as a celebrity; pursue celebrities

It’s better to offer no excuse than a bad one – George Washington

Bye…