Motor Controller Shield Driver

I made some changes to the the motor shield driver:

  • Changed (byte) to (PWM.pin) in:
    _pwm1 = new PWM((PWM.Pin)FEZ_Pin.PWM.Di5);
    Because we don’t need the old .cs file dealing with pins.

  • Changed 100-Math.Abs(speed2) to remove the “100-”:
    _pwm2.Set(1000, (byte)(Math.Abs(speed2)));
    Because the previous code had 100-100 = 0 when speed2 = 100.

Thanks. We’ll update the driver accordingly

I want connect two motors (for drive and for steering)
I don’t understand, how I can set values for each different
Can you help me?

You should probably start a new thread with more detail on what you’re trying to accomplish, rather than replying to a 2 year old thread.

Start with what equipment you have (if any), and what you’re trying to do, and any constraints you’re working within (budget, programming language, etc.).