trip controller