Line squaring with blocks #1699
Replies: 2 comments 7 replies
-
Thank you for using block coding and opening a discussion here! Can you describe in words or bullet points the process of 'line squaring', for those of us less familiar with FLL? How does the robot start, and how should it end up? How many sensors does the robot have, and how are they positioned? Is the robot allowed to cross the line temporarily during the operation, or is there no space for that? The more detail, the better. A picture of last year's board or the poster board you made might also help. Or even a video where you move the robot by hand. This way it might become a bit of a recipe for what you can then implement in blocks. Not trying to be pedantic - this tends to really help, including for your students and others finding this discussion thread later :) |
Beta Was this translation helpful? Give feedback.
-
Following up on the other comment, I've put together a version with a single color sensor for inspiration. We're working on a complete guide to coding and robotics, and we can certainly include examples like these. squaring.mp4I've included the "bullet point recipe" as comment blocks throughout the program below. If you've thought out the strategy with your team, implementing each "bullet point" may be a fairly small number of blocks as shown here. You may also see that I've calibrated the color sensor for my "board" and sensor distance to the ground. This technique is covered in this video. If you are happy with your sensor accuracy already, you can skip that step for now. |
Beta Was this translation helpful? Give feedback.
-
I'm helping with my daughter's FLL team this fall. They are 7th graders who have not learned any Python yet. I'll admit, I'm not familiar with Python either which is why I bought 3 copies of the Block version. So far it has been wonderful. That said, anyone who has seen the trailer for the FLL: Submerged board for this season will note that line following won't be too helpful, but line squaring is going to be crucial. I messed with it a little last evening using a Technic bot that I put together just to practice the basics and it isn't working. I used dark blue poster board, then marked it with white then black so that it resembles the way this year's board will look. For reference, I can't get it to work well with the regular Spike software as well. I'm a pharmacist by trade and very novice with computer programming so any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions