One of the smartest things you could do in any software program is to extract logic in small reusable, simple, understandable units. In EV3-G these are called Blocks and we are going to extract the logic for finding a minimum and maximum for each of the sensors in a new block.
- 04 Oct 2017
- Mindstorms Competitions, Mindstorms Sensors, Light & Color Sensor, Programming
- Ev3, Array
- D.Staykov, K.Mitov
First rule of EV3-G - if the program is taking more than one screen it is difficult to use and understand it.
By extracting into a new block you turn this:
Much better, easier and understandable.