FACT++  1.0
template<class T , class S >
int StateMachineDrive< T, S >::SendCommand ( const string &  str)
inlineprivate

Definition at line 843 of file cosyctrl.cc.

Referenced by StateMachineDrive< T, S >::StateMachineDrive().

844  {
845  // This happens if fLastCommand should be send,
846  // but the last command was not a tracking command
847  if (str.empty())
848  {
849  T::Info("Last command was not a tracking command. RESUME ignored.");
850  return T::GetCurrentState();
851  }
852 
853  fLastCommand = str.compare(0, 6, "RADEC ")==0 ? str : "";
854 
855  fDrive.PostMessage(str);
856  T::Message("Sending: "+str);
857 
858  return T::GetCurrentState();
859  }
char str[80]
Definition: test_client.c:7
string fLastCommand
Definition: cosyctrl.cc:794

+ Here is the caller graph for this function: