protected void sendFunctionGroup1(){
  StringBuilder sb=new StringBuilder();
  sb.append("xL ");
  sb.append(address.getNumber());
  sb.append(",");
  sb.append(",");
  sb.append((f0 ? "1" : "0"));
  sb.append(",");
  sb.append(",");
  sb.append((f1 ? "1" : "0"));
  sb.append(",");
  sb.append((f2 ? "1" : "0"));
  sb.append(",");
  sb.append((f3 ? "1" : "0"));
  sb.append(",");
  sb.append((f4 ? "1" : "0"));
  TamsMessage tm=new TamsMessage(sb.toString());
  tm.setBinary(false);
  tm.setReplyType('L');
  tc.sendTamsMessage(tm,this);
  tmq.add(tm);
}

protected void sendFunctionGroup1 ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "xL " ) ; sb . append ( address . getNumber ( ) ) ; sb . append ( "," ) ; sb . append ( "," ) ; sb . append ( ( f0 ? "1" : "0" ) ) ; sb . append ( "," ) ; sb . append ( "," ) ; sb . append ( ( f1 ? "1" : "0" ) ) ; sb . append ( "," ) ; sb . append ( ( f2 ? "1" : "0" ) ) ; sb . append ( "," ) ; sb . append ( ( f3 ? "1" : "0" ) ) ; sb . append ( "," ) ; sb . append ( ( f4 ? "1" : "0" ) ) ; TamsMessage tm = new TamsMessage ( sb . toString ( ) ) ; tm . setBinary ( false ) ; tm . setReplyType ( 'L' ) ; tc . sendTamsMessage ( tm , this ) ; tmq . add ( tm ) ; }
send the message to set the state of functions f0 , f1 , f2 , f3 , f4 . to send function group 1 we have to also send speed , direction etc .
