IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2008, 7:45:21 AM (18 years ago)
Author:
eugene
Message:

modify functions to use both int and flt vectors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/opihi/dvo/avextract.c

    r20839 r20857  
    77  int Nsecfilt, mode, VERBOSE;
    88  char **cstack, name[1024];
    9   float *values;
     9  dbValue *values;
    1010  void *Signal;
    1111
     
    117117      if (!dbBooleanCond (stack, Nstack, values)) continue;
    118118      for (n = 0; n < Nreturn; n++) {
    119         vec[n][0].elements.Flt[Npts] = values[n];
     119        if (vec[n][0].type == OPIHI_FLT) {
     120          vec[n][0].elements.Flt[Npts] = values[n].Flt;
     121        } else {
     122          vec[n][0].elements.Int[Npts] = values[n].Int;
     123        }
    120124      }
    121125      Npts++;
     
    136140  }
    137141
     142  free (values);
    138143  dbFreeFields (fields, Nfields);
    139144  dbFreeStack (stack, Nstack);
     
    144149
    145150 escape:
     151  free (values);
    146152  dbFreeFields (fields, Nfields);
    147153  dbFreeStack (stack, Nstack);
Note: See TracChangeset for help on using the changeset viewer.