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/outline.c

    r2598 r3693  
    158158      Nline = 0;
    159159     
    160       write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */
    161       sprintf (line, "OVER %9d ", 0);
    162       write (Ximage, line, 16);
     160      SendGraphCommand (Ximage, 4, "LOAD");
     161      SendGraphCommand (Ximage, 16, "OVER %9d ", 0);
    163162     
    164163      dx = par[2];
     
    178177       
    179178        if (Nline >= 510) {
    180           sprintf (line, "NLINES  %7d ", Nline);
    181           write (Ximage, line, 16);
     179          SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline);
    182180          write (Ximage, buffer, Nline*128);
    183181          bzero (buffer, 65536);
     
    185183        }
    186184      }
    187      
    188       sprintf (line, "NLINES  %7d ", Nline);
    189       write (Ximage, line, 16);
     185
     186      SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline);
    190187      write (Ximage, buffer, Nline*128);
    191       sprintf (line, "DONE ");
    192       write (Ximage, line, 16);
     188      SendGraphCommand (Ximage, 16, "DONE");
     189
    193190      free (buffer);
    194191      free (line);
Note: See TracChangeset for help on using the changeset viewer.