IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2005, 5:06:32 AM (21 years ago)
Author:
eugene
Message:

converting to use libkapa commands instead of raw graph commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/save.c

    r4689 r5846  
    33int save (int argc, char **argv) {
    44 
    5   int N, n, ISCEL;
     5  int N, celestial;
    66  int Ximage, Nimage;
    77 
     
    1414  if (!GetImage (&Ximage, &Nimage)) return (FALSE);
    1515
    16   ISCEL = FALSE;
     16  celestial = FALSE;
    1717  if ((N = get_argument (argc, argv, "-c"))) {
    1818    remove_argument (N, &argc, argv);
    19     ISCEL = TRUE;
     19    celestial = TRUE;
    2020  }
    2121
     
    2626  }
    2727
    28   if (!SelectOverlay (argv[1], &n)) return (FALSE);
    29  
    30   if (ISCEL)
    31     SendGraphCommand (Ximage, 4, "CSVE");
    32   else
    33     SendGraphCommand (Ximage, 4, "SAVE");
    34 
    35   SendGraphMessage (Ximage, "FILE: %d %s", n, argv[2]);
     28  KiiSaveOverlay (Ximage, celestial, argv[1], argv[2]);
    3629  return (TRUE);
    3730}
Note: See TracChangeset for help on using the changeset viewer.