Changeset 409 in Sophya
- Timestamp:
- Sep 22, 1999, 11:56:54 AM (26 years ago)
- Location:
- trunk/Poubelle/archTOI.old
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/Makefile
r405 r409 7 7 ssthandler.o toiinterpolator.o gpsparser.o asigps.o \ 8 8 auxinterpgps.o tsid.o archparam.o dyffttools.o fft_mayer.o \ 9 formepulse.o pisteetoile.o sstetoile.o transfelec.o 9 formepulse.o pisteetoile.o sstetoile.o transfelec.o \ 10 gyrohandler.o 10 11 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm 11 12 archdump: archtoidump.o archeopsfile.o decompress.o archeops.o ssthandler.o … … 14 15 archeopsfile.o: archeopsfile.cc archeopsfile.h archeops.h \ 15 16 archeops_28.h ssthandler.h gpsparser.h compress.h 17 # cxx -O -g -I../cfitsio -c archeopsfile.cc -o archeopsfile.o -assume noaligned_objects 16 18 archtoi.o: archtoi.cc archeopsfile.h archeops.h archeops_28.h \ 17 19 ssthandler.h gpsparser.h toisvr.h toiiter.h auxgps.h tsid.h archtoi.h \ … … 54 56 fft_mayer.o: fft_mayer.cc mayer_fft.h trigtbl.h 55 57 archparam.o: archparam.cc archparam.h 58 gyrohandler.o: gyrohandler.cc gyrohandler.h archeops.h archeops_28.h -
trunk/Poubelle/archTOI.old/archeopsfile.cc
r408 r409 675 675 } 676 676 #endif 677 677 678 678 long ArcheopsFile::searchNextBlock(long pos) { 679 679 static char* buffer = 0; … … 692 692 //if (read<taille_maxi_block_archeops*2) return -1; 693 693 // EA 150999 changed i+=4 to i++ -> unaligned, but can lose bytes in flight recorder 694 for (size_t i=4; i<read; i++) { 695 if (*(int4*)(buffer+i) == debswp) { 694 #ifndef __DECCXX 695 #define __unaligned 696 #endif 697 for (size_t i=4; i<read; i++) { 698 if (*(__unaligned int4*)(buffer+i) == debswp) { 696 699 cout << "trying to skip " << i << " bytes to pos="<<pos+i << endl; 697 700 return pos+i; … … 704 707 } 705 708 706 709 707 710 708 711 … … 931 934 } 932 935 936 double ArcheopsFile::getMuVBolo2T(int ibolo, int imesure) { 937 return getMuVBolo2(ibolo, imesure) - getDACV(ibolo); 938 } 933 939 934 940 // SST, gyros... -
trunk/Poubelle/archTOI.old/archeopsfile.h
r408 r409 135 135 double getDACV(int ibolo); // offset en microvolt 136 136 double getDACI(int ibolo); // courant en picoAmps 137 double getMuVBolo2T(int ibolo, int imesure); // avec soustraction dacV 137 138 138 139 // SST, gyros, etc -
trunk/Poubelle/archTOI.old/gpsparser.cc
r350 r409 83 83 84 84 // UTC 85 if (*p < '0' || *p > '9') return; 85 86 double t; 86 87 sscanf(p, "%lg", &t); … … 94 95 95 96 // LATITUDE 97 if (*p < '0' || *p > '9') return; 96 98 sscanf(p, "%lg", &t); 97 99 int d = int(t/100); t -= d*100; … … 108 110 109 111 // LONGITUDE 112 if (*p < '0' || *p > '9') return; 110 113 sscanf(p, "%lg", &t); 111 114 d = int(t/100); t -= d*100; … … 130 133 131 134 // NSAT 135 if (*p < '0' || *p > '9') return; 132 136 sscanf(p, "%d", &nsat); 133 137 p += 2; … … 136 140 137 141 // HDOP 142 if (*p < '0' || *p > '9') return; 138 143 sscanf(p, "%lg", &hdop); 139 144 while (*p != ',' && p<fence) p++; … … 142 147 143 148 // Altitude 149 if (*p < '0' || *p > '9') return; 144 150 sscanf(p, "%lg", &alt); 145 151 while (*p != ',' && p<fence) p++; … … 152 158 153 159 // Geoid separation 160 if (*p < '0' || *p > '9') return; 154 161 sscanf(p, "%lg", &gsep); 155 162 while (*p != ',' && p<fence) p++;
Note:
See TracChangeset
for help on using the changeset viewer.