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.data/point.c

    r2843 r3693  
    4444  }
    4545
    46   ALLOCATE (line, char, 1024);     /* space to read the file */
    47 
    4846  ra = atof(argv[3]);
    4947  dec = atof(argv[4]);
     
    7068  }
    7169
    72   write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */
    73   sprintf (line, "OVERLAY %6d ", n);
    74   write (Ximage, line, 16);
    75   sprintf (line, "NLINES %7d ", 1);
    76   write (Ximage, line, 16);
    77   sprintf (line, "%15s %20.10f %20.10f %20.10f %20.10f ", argv[2], x, y, dx, dy);
    78   write (Ximage, line, 128);
    79   sprintf (line, "DONE ");
    80   write (Ximage, line, 16);
    81 
    82   free (line);
    83 
     70  SendGraphCommand (Ximage, 4, "LOAD");
     71  SendGraphCommand (Ximage, 16, "OVERLAY %6d ", n);
     72  SendGraphCommand (Ximage, 16, "NLINES %7d ", 1);
     73  SendGraphCommand (Ximage, 128, "%15s %20.10f %20.10f %20.10f %20.10f ", argv[2], x, y, dx, dy);
     74  SendGraphCommand (Ximage, 16, "DONE");
    8475  return (TRUE);
    85 
    8676}
    8777
Note: See TracChangeset for help on using the changeset viewer.