The advanced proportional control program works the same way as
the basic version; however, this code allows the user to vary the
proportionality constant. When run, the NXT first displays the current
proportionality constant that the later "power" variable will be divided
by. Thus, if 4 is shown on the NXT, the proportionality constant will
be ? or .25. The constant can be changed by turning the rotation
sensor. Only positive values will work. After the constant is set,
a press of the touch sensor will "Switch" into the proportional control loop from the basic program.
Experiment with different constants. Note the difference between very
small constants and very large constants.