Set signal values after integrate but before "after" periodic call

This fixes an issue brought by PR #24

Some signals were updated twice during the control loop (in particular in sot-pattern-generator) resulting in undesired behaviors.

Updating the states values before calling "after" periodic call fixes that.