r/FLL • u/RollingThunder_CO • 23d ago
Sudden code issue after 4 weeks of working right
TL;DR code worked for 4 weeks, consistent starting point, this week consistency dropped by 50+% what can we try before messing with code?
The team I’m working with has a code that does window to the past, humongous fungus, leaf cutter, and then raises the cane on forest elder before going back to the launch area.
They’ve had the code pretty set for about 4 weeks now and it would work 4/5 times with some variation on the leaf cutter not always pushing completely in. They have a jig to keep their starting point constant.
Suddenly this week it started missing everything by a centimeter or so to the right. We tried charging the battery and cleaning the wheels and it was still very inconsistent, maybe would hit 2/5 times.
We had a mock tournament yesterday and all 3 trips to the board it missed. (Of course it worked on a practice round on the same board)
Before the kids start tweaking the code I wanted to see if there was anything else that would cause sudden wonkiness like this? Besides cleaning wheels and charging batteries are there other tips? Does doing a reset of the hub ever do anything?
The kids were frustrated yesterday with missing the points, but mostly with why it worked so long and now doesn’t with competition two weeks away.
Thanks for any help!
2
u/gt0163c Judge, ref, mentor, former coach, grey market Lego dealer... 23d ago
Your team is right to consider other options before tweaking the code. Code doesn't just stop working or change. Something else changed. Cleaning the wheels and ensuring the battery is charged are good first steps. Using a jig to ensure a consistent starting position is good. But depending on what the jig is aligned to, differences in tables could impact how the robot moves. For instance if the jig is aligned to the south wall and your home table is perfectly square and the mat is placed exactly as it should be, but the competition table is a little out of square or the mat is placed not exactly straight (or both!), that could be an issue. Minor changes to the position of the mission models, which are still within the tolerances allowed, can also be a source of error. And there are many other small differences that can cause tiny changes which can impact a robot's performance. Differences in mat texture (mats at competition generally are very close to brand new. Mats used by teams have been used and worn down a bit), table differences (surface under the mat, bumps and imperfections, tables not being perfectly square or not being out of square in the same way as the team's home table, different wall heights), lighting, sound and temperature differences (which are probably small, but still can have an impact depending on the team's robot design, wheels and sensors used, etc.). And many, many other things. And, yes, this can be frustrating for teams. But it's all a part of doing things with robots. Robots do not operate 100% consistently every time, even industrial robots. And the robots FLL uses are plastic toys (really cool plastic toys, but still plastic toys).
So, some suggestions I always give to teams:
1
u/Hellothere_1 23d ago edited 23d ago
Cleaning the wheels is a good first step, but have you tried switching them out? Wheels do degrade over time. It depends a bit on the type of wheel you're using, but on some wheels we used to run through 2-3 sets of tires per season per robot.
Check the state of your caster wheels/balls as well, because those can also lead to weird behavior if they're degraded.
Finally you should also check the axles and pins of your main wheels and caster wheels if you have them. In one of our seasons the pins connecting our caster wheels to the robot frame had degraded so much the entire sockets were filled with fine plastic dust, so we had to swap out the wheels, pins and the frame elements they were connected to.
Lego is not really intended for continous long term operation, and a busy FLL season can push some parts way past their intended lifetime.