Week 10 – James – 2019

Hi guys. Today I did a lot of coding today. I finally worked out why the code was saying “Hello”. I was running the wrong project! I also forgot about the ramp and did some coding on the can finder and deleted all my code I don’t need for the competition. When I got back to the ramp, I managed to get it to work.

I’ve only kept four pieces of code for the competition. The picture of the code is below.

My main code.
My variables.
My can finder code.
My speed builder code.

I tried the older code on the black line. But it did not work. Dad suggested I might be running the wrong code because I made a new project called 19/08/08 James.ev3 but I was running James.ev3, the project I made at the start of my journey!

With the can finder, I had to add a bit so it locks onto the can first and then locates it. It does not show you this in my code, above, because these photos where taken on Thursday but we had an extra lesson on Tuesday so we were prepared for the competition which is happening in 1 weeks time. The can finder works really well and gets the can out safely.

When we get up to the ramp, it runs my can finder code. So I added bits in before my can finder code to make the robot go over the ramp. I added a block to drive straight for 2.1 rotations of the wheel. It worked before saving the can and it also worked while the ramp was quite far off the liquid spillage area.

The line follower is still in good shape so I feel good about the competition.

My next step: To add comments in my code so I understand it.

This is the end of this weeks blog. Now here is the word and phrase of the day.

Perseverance: Not giving up despite the tasks difficulty.

I want to be remembered as a great competitor and a great teammate – Steve Nash

Bye…