Control System Development for a Gastric Retention and Injection Device for Autonomous Urgent Care Therapy