triffid / FiveD_on_Arduino

Rewrite of reprap mendel firmware
http://forums.reprap.org/read.php?147,33082
GNU General Public License v2.0
30 stars 12 forks source link

simulation code. #10

Closed sw closed 13 years ago

sw commented 13 years ago

Hi triffid,

I wrote some simulation code to test the firmware (since I'm still waiting for my electronics to arrive in the mail ;-)

This may be useful for debugging the firmware on a PC, so feel free to use my code if you like it...

If you pull my commit, you can use "make sim" to build a program that will run on your PC. It uses most of the actual firmware code, except the low-level code is replaced, e.g. serial.c is replaced by serial_sim.c which opens a serial port on the PC. You can then use a null modem cable or "socat" to connect it to anything that outputs G-code. I wrote about that in the README.

I tried to keep the impact on the existing code as small as possible.

This is only tested on 32bit Linux, so please let me know if it doesn't work on your system... Also, only the steppers are supported, but not reading analog values such as the heater temperature.

By the way, what is the license for this project? I'm assuming something like GPL, but you should probably put a copyright line in the README.

Cheers, Stephan

triffid commented 13 years ago

pulled, thanks! this looks great!