For a project I am working on I need to implement traction control to a RC car. In designing this algorithm I need to create a simulation environment in order to test the control algorithm. The basic idea is that I sense the driven wheel speed and compare it to a free wheel speed. If slip occurs, the driven wheel will rotate faster than the free wheel and the control algorithm will be activated. It will reduce the torque supplied to the driven wheel incrementally until optimal friction is restored and then in a controlled fashion increase the torque again to match the free wheel speed. How will I be able to test this in a simulation environment?