This circuit uses a little bit of digital circuitry to turn off the switching MOSFET as soon as the inductor current hits 3A. For more details on this type of circuit, take a look at the description of the previous version http://everycircuit.com/circuit/5816291173335040
I will be using this circuit (and this improved feedback circuit with a latch) to improve my boost and buck converter circuits.