I know this is off topic, but it is software. The Mars Rover Team has
released the software
that they are using to command the Rover. It can be found at
http://www.telascience.org
Also don't forget to download the data set amd docs too.
John Donaldson