protected static void Start(RobotApplication ra) { Instance = ra; /*first repeat call init until true */ bool flag = false; while (!flag) { flag = Instance.RobotInit(); System.Threading.Thread.Sleep(20); } /* now run loops */ Instance.RunForever(); Reporting.ConsolePrint("RunForever returned, this should not be allowed."); }
/** * Called by the framework to run the robot. */ public virtual void RunForever() { Reporting.ConsolePrint("RunForever needs to be implemented."); }