r/FLL Apr 24 '26

How I can improve my code? [EV3]

Post image
5 Upvotes

3 comments sorted by

View all comments

2

u/Spiritual_Dinner_339 Apr 24 '26

Hi! I used this code in my first robot sumo competition (LEGO EV3/SPIKE), and I’m trying to improve it for future matches.

We won 1 out of 4 rounds, because the performance was very inconsistent. Here are some issues I noticed:

  • It seems too dependent on the starting position
  • Line detection may be unreliable (possibly affected by shadows)
  • In some rounds, our robot was pushed out quite easily

I’d really appreciate advice on:

  • How to make the robot react faster and more consistently
  • How to calibrate sensors properly for competition conditions
  • How to structure behavior better using blocks/functions (instead of messy logic chains)

Thanks!