I am generating a path using pathfinding.js. This returns a path of node coordinates from a matrix. Example:
var matrix = [[0,0,0,0], //0 are passable, 1 are obstacles [0,1,1,0], [0,1,1,0], [0,0,0,0]] var path = [[0,0],[0,1],[0,2],[0,3],[1,3]] etc.
I now wish to convert this to path to something like, takeoff(), turnLeft(), forward(4) etc.
What this process called, I have had a look at many programming books and guides but they seem to ignore this method or miss it out. I also had a go at it myself but can't figure out the direction of unit that is being moved along the path.