We are building nano satellite. In that I am using PWM to controller current through magnetorquer rods. And I want to use PWM with PID. I want the input of PWM should be only signal (no period And duty cycles) and it should work at any signal of any frequency. And I should get PWM waveform/pulses as output. I am trying to simulate this in matlab Simulink. Can anyone help me please?