IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 11, 2005, 10:37:51 AM (21 years ago)
Author:
eugene
Message:

moved kapa/kii communications to use SendGraphCommand functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/objload.c

    r3462 r3693  
    6666  free (buffer);
    6767
    68   write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */
    69   sprintf (line, "OVER %9d ", n);
    70   write (Ximage, line, 16);
     68  SendGraphCommand (Ximage, 4, "LOAD");
     69  SendGraphCommand (Ximage, 16, "OVER %9d ", n);
    7170 
     71  /** NOTE: modify to use NBYTE **/
    7272  ALLOCATE (buffer, char, 66000);
    7373  bzero (buffer, 65536);
     
    7575    snprintf (&buffer[Nout*128], 129, "%15s %20.10f %20.10f %20.10f %20.10f ", "BOX", X[i], Y[i], 5.0, 5.0);
    7676    if (Nout == 512) {
    77       sprintf (line, "NLINES  %7d ", Nout);
    78       write (Ximage, line, 16);
     77      SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nout);
    7978      write (Ximage, buffer, Nout*128);
    8079      bzero (buffer, 65536);
     
    8483
    8584  if (Nout) {
    86     sprintf (line, "NLINES  %7d ", Nout);
    87     write (Ximage, line, 16);
     85    SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nout);
    8886    write (Ximage, buffer, Nout*128);
    8987  }
    90   sprintf (line, "DONE ");
    91   write (Ximage, line, 16);
     88  SendGraphCommand (Ximage, 16, "DONE");
    9289
    9390  free (X);
Note: See TracChangeset for help on using the changeset viewer.