Terradepth interview question

How would you design a controller for this application?