public bool checkServo() { if ((ConnectStatus & CONNECTTYPE.CONNECTED) == 0) { return(false); } try { TsStatusAllS status = _Robot.GetStatusAll(); if (status.ServoStatus == 1) { ConnectStatus |= CONNECTTYPE.SERVOON; } else { ConnectStatus &= ~CONNECTTYPE.SERVOON; } return(true); } catch (TsRemoteSException ex) { //Error processing Console.WriteLine("checkServo: " + ex.Message); } return(false); }