I at the moment am trying to make an EV3 robot which is capable of following a gradient decent method. The idea was to store a discretized function in a 2D matrix, and make several lookups in that 2D matrix where I compute the difference between its position and its neighbor's position. and then make the robot move in the direction with descending gradient.
To do so...
How do I use the EV3 software to:
- Create a Matrix?
- Store values in matrix?
- Make lookups in matrix?
- Subtract those lookups?
This could be way easier in C++, but is there any supported firmware capable of running C or C++ in the same way as with NXC or something like this? Something with some form of documentation?