📜 ⬆️ ⬇️

Entertaining calculations for programmers, robotics and mathematicians

Research task for mathematicians, robotics and programmers.

image

The enclosed file contains 600 integers line by line, obtained using the test bench of LEGO electric motors.
')


The program of the control module sends to the engines attached to the stand a command for establishing the power of 50 units, and after 5 seconds gives the command to stop (without electric braking, by inertia). It waits for 1 second (so that all engines have time to stop), after which it removes from the sensors built into the engines the values ​​of revolutions completed by them in 5+ seconds (in degrees). The values ​​are in order written to a file in the following format:

1 line: 2222 - the number of degrees made by 1 engine on 1 attempt
2 line: 2223 - the number of degrees, perfect 2 engine on 1 attempt
3 line: 2225 - the number of degrees, perfect 3 engine on 1 attempt
4 line: 2230 - the number of degrees, perfect 4 engine on 1 attempt
...
...
(N-1) * 4 + 1 line: 2240 - the number of degrees made by 1 engine on N attempt
(N-1) * 4 + 2 line: 2212 - the number of degrees, committed by 2 engine on N attempt
(N-1) * 4 + 3 line: 2232 - the number of degrees committed by 3 engine on N attempt
(N-1) * 4 + 4 line: 2201 - the number of degrees made by 4 engine on N attempt
...
...

After recording the sensor values ​​are reset, the program repeats the above steps 150 times. Before the program starts, the values ​​of the engine sensors are also reset.

image

Try to get the maximum amount of information from the attached file , which tells about the features of each engine and the control module as a whole :)

Source: https://habr.com/ru/post/371739/


All Articles