Calculates a motor torque to drive a hinged panel to a reference angle state.
A sensed and reference hinged rigid body angle drives a simple PD control law.
This method is called whenever some key parameters are changedand any new local variables are required to be recalculated. Thiscan be called by the software chains if a configuration of somevalues are updated.