Constructing the control law

The control law is constructed using fixed-point sum, mul, div, const, and gain blocks. The gear ratio GR_local is defined as 0.043478 using a fixed-point const block. A 50ms pulseTrain defines dt. The map block points to PP.MAP and sets the data type to Scaled Int. The resulting control law implementation is: