IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 30, 2008, 10:15:32 AM (18 years ago)
Author:
eugene
Message:

functions to set the display parity

File:
1 edited

Legend:

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

    r13479 r21060  
    3030  return (TRUE);
    3131}
     32
     33int parity (int argc, char **argv) {
     34 
     35  int x, y;
     36  int kapa, N;
     37  char *name;
     38 
     39  name = NULL;
     40  if ((N = get_argument (argc, argv, "-n"))) {
     41    remove_argument (N, &argc, argv);
     42    name = strcreate (argv[N]);
     43    remove_argument (N, &argc, argv);
     44  }
     45  if (!GetImage (NULL, &kapa, name)) return (FALSE);
     46  FREE (name);
     47
     48  if (argc != 3) {
     49    gprint (GP_ERR, "USAGE: parity x y\n");
     50    return (FALSE);
     51  }
     52
     53  x = atof (argv[1]);
     54  y = atof (argv[2]);
     55
     56  KiiParity (kapa, x, y);
     57  return (TRUE);
     58}
Note: See TracChangeset for help on using the changeset viewer.