Had some issues getting either the DJI or Litchi app to connect. Finally got Litchi to connect and it flew this mission perfectly. Went to take some stills of the sunset and the low battery warning went off. I hit the rth button on the remote and nothing happened. I hit the rth button in the app, nothing happened and I got a warning saying rth had failed. At this time I had no control of the aircraft using the sticks. Toggled the mode switch to sport and back again twice in an attempt to regain control to no avail. At this point the rth feature kicked in and it began descending from about 150 ft. Not sure how I regained control but eventually I did and was able to land manually with no damage to the aircraft.