I am trying to write a piece of software to make a model train controllable in the same way that a real diesel locomotive is. Obviously I can't emulate a real diesel engine, and a functional air brake system on 1:87 scale, and certainly not using only software. So I need some insight from people...