How our robot fits our Missions
Because we identified that our Route 1 had several missions that needed pushing, we were sure to make a robot with a flat front, but also make an area for attachments to be easily added and removed. Note the medium motors in the front facing up for dropping attachments onto. Also we realized the importance of placing a color sensor close to the wheel axels for quick sensor response. The ball barring wheels in the back allow for free, balanced turning. A key feature of our attachments are quick release "clips" on the sides that hold attachments in place.
The shoulder of the black piece fits into the the hole on the motor. It's not intended to work like this by LEGO, but the method holds our attachments so securely that you can pick up the robot by the attachment.
Missions used: Step counter, tread mill, tire flip, bench
How it works:
A versatile lifting arm that fits down around the medium motors arm goes up. Used for pushing pulling and stabilizing. The two red "balls on top lock it into place.
Missions used: Step Counter
How it works:
An extension of attachment 1, it stops the movement of the step counters escapement mechanism so that the robot can quickly do the step counter.
Missions used, Bench, innovative project
How it works: The red extension arm to the left pushes the innovative project into the right position. The 90 degree arm in the middle lifts up the back of the bench and the tray at the bottom gets caught on the bench, sliding out and as the rest of the attachment keeps moving forward. This drops the cubes into the correct position. The eyes make it look like a lobster... and who doesn't like lobster!
Missions used, basketball and boccia share.
Missions used, Slide
Missions used, Bocchia and Dance
Explanation:
This is the main piece of code that make our robot move reliably. The gyro rotations My Block. this my block uses the motor Rotations Sensor ands gyro to create a very accurate moving forward block. The first part in front of the loop resets the motor Rotation sensors. Inside the the loop the yellow block reads the data from the gyro to detect if the robot is drifting. The two red blocks next are math blocks. The first one subtracts the angle relative to the starting position you want and the second one multiplies it by -5 which will go into the green steering block. This makes it so when it is drifting it makes the robot turn the other way. The last section of the loop is the rotations part. What it does is it keeps going until the amount of rotations is less than or equal to the value that you put into it. The last block is to stop the wheels 0f the robot.