ProcessTask and part of PositionTask ported to freeRTOS