IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3314


Ignore:
Timestamp:
Feb 23, 2005, 3:17:05 PM (21 years ago)
Author:
eugene
Message:

minor fix to cameraconfig -ID/-N

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/src/cameraconfig.c

    r2803 r3314  
    11# include "imregister.h"
    2 static char *version = "cameraconfig $Revision: 1.2 $";
     2static char *version = "cameraconfig $Revision: 1.3 $";
    33
    44void usage ();
     
    165165
    166166  GetID = FALSE;
    167   IDsel = 0;
     167  Nsel = 0;
    168168  if ((N = get_argument (argc, argv, "-ID"))) {
    169169    GetID = TRUE;
    170170    remove_argument (N, &argc, argv);
    171     IDsel = strcreate (argv[N]);
     171    Nsel = atoi (argv[N]);
    172172    remove_argument (N, &argc, argv);
    173173  }
    174174
    175175  GetN = FALSE;
    176   Nsel = 0;
     176  IDsel = NULL;
    177177  if ((N = get_argument (argc, argv, "-N"))) {
    178178    GetN = TRUE;
    179179    remove_argument (N, &argc, argv);
    180     Nsel = atoi (argv[N]);
     180    IDsel = strcreate (argv[N]);
    181181    remove_argument (N, &argc, argv);
    182182  }
     
    213213            ID, &x, &y, &dx, &dy, datasec, biassec, &Xo, &Yo, &theta);
    214214
    215     if (GetN  && (Nsel == i)) fprintf (stdout, "%d\n", i);
    216     if (GetID && strnumcmp (IDsel, ID)) fprintf (stdout, "%s\n", ID);
     215    if (GetN  && strnumcmp (IDsel, ID)) fprintf (stdout, "%d\n", i);
     216    if (GetID && (Nsel == i)) fprintf (stdout, "%s\n", ID);
    217217    if (SEQ)     fprintf (stdout, "%d ", i);
    218218    if (CCDS)    fprintf (stdout, "%s ", ID);
Note: See TracChangeset for help on using the changeset viewer.