Hi!, i made a Modular script to store the direction the turtle is facing in a value (0-3)
explained more on the pastebin page: http://pastebin.com/dnysGDa6