Orientation update function

Moved orientation update task to a scheduler_task class