Self-tuning controllers via the state space