Thursday, December 29, 2016

The Jirachi Story

From December 1st, 2016

Let's say Jirachi wants to eat a berry, and finds one ten feet away.


Jirachi wants to go straight to the berry, but he is in a constant wobble the whole way, due to his proportional controller (which simply measures the object's error times a gain, and then corrects).

Jirachi needs a controller that will take the past, present, and future corrections, and adds them up to make on big correction. How can we do that?

Well, the answer is My Blocks! First off, we measure the error, which is our current gyro minus the wanted angle. Then, we take that times a gain (just a number we multiply by to slightly or massively change our correction.).
Then, we take the past correction, which is all of our past errors times one gain (usually small so we don't get a number that is 1000+). We need this to gauge where we are compared to where we need to be.

Finally, we need a future correction, which based on the gyro rate, slows the robot down a little or a lot. We need this to predict where we will be.

After we get those three, we add them together for our one correction! Then, we repeat 20 times a second!

After all of this, Jirachi should get his berry, and he will eat it and be happy!




Jirachi is owned by Nintendo™.

Until next time, keep building!

Cody W., Brickstormers


December 29, 2016

Our plan today was to fix up Animal Conservation and get our robot to the wall. We changed our plan of going straight from the fridge to the flamingo to hitting the wall and continuing from our old program. Our old program had us square up to a line, run into the wall, back up in front of the machine, attack the flamingo, and then go spin. To do this, we had to change some angles, and we made a new My Block that fixes the gyro when it is a few degrees off. Then, we went over to Biomimicry (the wall mission) for fixing. We also strike the fridge and go over the dog fence for extra points, which worked. Then we tried the cow, and it didn't really work. The bullet would shoot over the cow, or we would go away from the lever, or something silly like that. We also made a website, which you can check out at amphibiramp.com. We're planning to finish up our missions, project, and fix up our Core Values in the next week. Until next time, keep building!