The update() function is the most important method that makes the controller alive. The update method, by default, executes the code inside it at a rate of 1,000 Hz. It means the controller completes one execution within 1 millisecond.
virtual void update();