Home
IPC DATA LOGGER - Institute of Aviation
Contents
1. Column Heading Description Format and Limits Time Universal Coordinated Time HHMMSS Mark Observer Data Mark Auto incrementing integers Mode GPS Operational Mode 0 7 none 2 non diff 3 diff Lat Latitude in WGS 84 Datum or ddmm mmmmm indicates North Latitude Long Longitude in WGS 84 Datum or dddmm mmmmm indicates East Longitude Alt Altitude Above MSL Units of feet Rate of Climb Vertical Speed Units of feet minute Airspeed Indicated Airspeed Units of Knots MagHeading Magnetic Heading Degrees Pitch Pitch Attitude Degrees nose up Roll Roll Attitude Degrees right Ball Coordination Yaw Units of Ball Width CDI 1 VOR LOC 1 Course Deviation Percent Full Scale limit at 120 right T FI 1 To From Indicator 1 TO 1 FROM 0 none Flagl VOR LOC 1 Flag 1 GOOD 0 FLAGGED CDI 2 VOR LOC 2 Same as Above T F2 Flag2 GSCDI Glideslope Course Deviation Same as VOR LOC CDI s up GS Flag Glideslope Flag Same as VOR LOC Flags COS Course Over Ground Degrees Derived by GPS SOG Speed Over Ground Knots Derived by GPS The Mode of the Data Logger which employs WAAS correction has the decimal number 200 added to the mode value to differentiate the data from the original which used DCI RTCM corrections 14 Table 3 Legend for UTM ASCII Converted Files Column
2. 32 if data lt 0 042 tempx 1 TO if l 5 Record CDIT F2 tempx note sign change else Record CDIT F1 tempx break case 6 CDI2 Flag case 9 CDI Flag tempx O if data gt 0 175 tempx 1 if I2 6 Record CDIFlag2 tempx else Record CDIFlagl tempx break case 11 GS Flag tempx O if data gt 0 20 tempx 1 Record GSFlag tempx break if GyroFlag amp amp abs pitch lt 7 amp amp abs roll lt 5 GyroFlag 1 ADInProgressFlag ADDataReadyFlag O return O EA AL EE RI EE AE EE AA TES VAN AS EER OE GE OE AS EGO eS JE ADCheckRdy merely checks to see if the interrupt driven t conversions are complete and set a flag ka X FREER EERE EERE EEE R EERE EEE EERE EEE REE ER EKER EER EERE EKER EEE EERE EERE EEE EERE EERE HER HHH unsigned ADCheckRdy int status if ADInProgressFlag amp amp ADDataReadyFlag look for complete flag ADTask 9 ADParameters 0 2 status call driver if ADParameters 1 O ADDataReadyFlag 1 if status O FatalError A003 exit on error return ADDataReadyFlag FREER EERE EEE EERE EERE EER EKER EERE EER EERE EKER EEE EERE EER EEE EERE EEE RHEE EEE EKER uid d Ei JE J ADLoop check for a condition wereby the A D system accepts all commands with no errors but never returns a conversion i ie complete signal This condition require
3. Globals for A D board 41 ADDataBuffer 200 ADTempBuffer 100 int ADCount 10 DRAR ARARAT int GPS H D Flag O IONFlag 1 GPS Precision Flag 1 int GEOSATFlag O PH 7 PORT KVH compass system on COM3 PORT OT terminal on COM2 PORT GPS GPS receiver on COM1 int SendGPSCommand char p void FatalError char p void GPSlnit void int ReadGPS void void GPSDelnit void void GPSScan void void NameFile void void WriteT oFile void void ReadSysParameters void void SysTime long int void WriteT oBuffer void int WriteRestart void void checkdisk void void CopyToFloppy void int handler int int int int void DisplaySignOn char char void QTClear void void OTWLine char int void OTBeep void void LEDUpdate void void GetKeyboardlnput void UpdateCount char void ReadRestart void void OTReset void void DisplayRestart void unsigned ADSetup void unsigned ADProcedures void unsigned ADCheckRdy void void GetKeyboardInput void void Pacing void void ADLoop void void SignOff void void CopyMessage char void ReadCompass void float GetMagHeading void void DisplayCompass void DRAR ART void GetGPSParameters void int ReadResponse void void ResetGPSRate void void PitchRoll int p int pp void ASPend int AS float bp FILE in int main int status ReadSysParameters
4. MarkFlag O Marking in progress MarkIndex O Current or last mark index ReStartFileFlag O Valid restart file read 40 int int int int int int int int int unsigned char CurrentContrast Ox66 ReStartUpdateFlag O ReStartMarklndex 0 CompassCheckFlag 0 LogFileNamed O WriteRecordFlag O FlushRecordBufferFlag O SetTimeFlag 1 FloppyFlag O ExitFlag O ADInProgressFlag O ADDataReadyFlag O BannerFlag O DiagnosticFlag O char SystemID float PitchOffset PitchGain RollOffset RollGain AltOffset AltGain BallOffset BallGain char DataDirPath 50 stru un int int do do int int int int int int flo int int int int int int int int int int stru stru ct record signed long Time Mark Mode uble Latitude uble Longitude Altitude RateOfClimb Airspeed MagHeading Pitch Roll at Ball CDI CDIT F1 CDIFlag1 CDI2 CDIT F2 CDIFlag2 GSDev GSFlag COG SOG ct record Record ct record RecordBuffer 10 int RecordIndex O int GPSBufferFlagl2 0 0 char GPSBuffer 2 500 unsigned int LoopCounter 1000 unsigned ADPointBuffer 200 int ADStatus ADTask ADParameters 5 Update present restart ini file display compass check valid filename in logfilename write a record now recording stopped flush logger ini variables
5. D amp amp Res M amp amp Res N if Res D printf n nDecimation Factor gets temp sscanf temp d amp factor printf n n size sizeof Record if Buffer struct record malloc 500 size NULL printf Storage Allocation Failed n printf Exiting Program n exit 0 if in fopen InputFile rb NULL printf 96s not Found in InputFile printf Exiting Program n n exit 0 if out fopen OutputFile wt NULL printf Error opening file s OutputFile printf Exiting Program n exit 0 sprintf StrBuffer Time tMark tMode tLat tLong tAlt tRate_of_Climb tAirspeed tMagHeading tPitch tRoll tBall tCDI_ 1 tT_F1 tFlag1 tCDI_ 2 tT_F2 tFlag2 tGSCDI tGSFlag tCOG tSOG n fputs StrBuffer out j 0 do count fread Buffer size 500 in if count break for i 2O i count i if Res M amp amp Buffer il Mark 0 Res M if j O Res D convert Buffer i StrBuffer fputs StrBuffer out j factor MED rz Jwhile 1 fclose in fclose out return O 71 UTM Post Flight Software UNIVERSAL TRANSVERSE MERCATUR ASCII CONVERSION include lt stdio h gt include lt dos h gt include lt ctype h gt include lt bios h gt include lt alloc h gt include lt stdlib h gt include lt conio h gt include lt math h gt include lt string h gt include lt dir h gt in
6. include lt stdlib h gt include lt time h gt include lt dos h gt extern time t WriteTime extern int PacingFlag extern int WriteRecordFlag extern int WriteTimeFlag extern int RecFlag extern int GPSFlag extern int DCIFlag extern struct record unsigned long Time int Mark int Mode double Latitude double Longitude int Altitude int RateOfClimb int Airspeed int MagHeading int Pitch int Roll float Ball int CDI1 int CDIT F1 int CDIFlag1 int CDI2 int CDIT F2 int CDIFlag2 int GSDev int GSFlag int COG int SOG extern struct record Record FREER EERE EERE ERE REE EE EERE EERE EER EEE EERE EEE EERE EEE EERE ERE R EEE REE EERE REE E REE EEE HEE RRR E EK WriteTo Buffer will set WriteTime Pacing will check for loss of 1Hz datarate ScanGPS may reset PacingFlag if reacquired 2 W I y FREER EERE E REE EE EEE EERE EEE REE ER EEE REE EERE EEE R EEE EERE EER EEE EERE EEE REE RE HERE R uid dd Ei void SetTimeRecord void struct time now long temp gettime amp now temp 100 now ti hour now ti min 57 temp 100 temp now ti sec Record Time temp void Pacing void static time t PresentTime time t diff if RecFlag WriteTimeFlag return if PacingFlag if time amp PresentTime gt WriteTime 2L SetTimeRecord PacingFlag 1 WriteRecordFlag 1 GPSFlag DCIFlag O Write
7. int FileCopy char char if dos getdiskfree 1 amp free O OTReset OTWLine No Disk in Drive 1 QTWLine FILE COPY ABORTTED 3 QTBeep delay 2000 53 return if strlen DataDirPath strcpy search DataDirPath strcpy sourcefile DataDirPath strcat search fname if findfirst search amp block FA ARCH O return strcpy destfile dest strcat destfile block ff name strcat sourcefile block ff name if chmod sourcefile O 0x20 CopyMessage destfile if FileCopy destfile sourcefile chmod sourcefile 1 0x00 for if findnext amp block O return strcpy sourcefile DataDirPath strcat sourcefile block ff name strcpy destfile dest strcat destfile block ff name if chmod sourcefile O 0x20 CopyMessage destfile if FileCopy destfile sourcefile chmod sourcefile 1 0x00 FREER EERE REE EERE EEE EERE EERE ER ER ER EER EKER EER EER RR EER ER RE RR RR EER j FileCopy copies source to destination returning true i if successful and false if not ka ja FREER EERE EEE EE EERE EERE EEE EERE EE REE EE ERE REE REE ER EKER EEE EERE EERE EEE EERE EER KHER HHH int FileCopy char dest char source FILE in FILE out int status count size int buffer int error O NULL return 0 ULL return 0 if in fopen source rb if out fopen dest wb size sizeof Record if buf
8. In total there are twelve channels of analog information that are sampled and converted into digital data in this application It is possible to add significant number of additional analog sensors to the system up to 128 channels The magnitude of the variables to be measured range from a few tenths of a volt full scale to 10 volts full scale Additionally some variables are referenced to ground potential while others are the difference between two voltages differential In order to accommodate the range and types of signal voltages an analog to digital converter plus a 16 channel analog multiplexer are employed The analog to digital converter is a Model AD12 8 manufactured Industrial Computer Source the multiplexer is Model AT16 P by the same manufacturer The hardware configuration of these boards is documented in Appendix 4 The basic analog to digital converter used is capable of 12 bit resolution one part in 4096 The combination of the AD12 8 and AT16 P allow up to sixteen channels of both single ended and differential inputs with the gain amplification of each channel individually selected under control of the software The A D system incorporates a counter timer system that is used to automatically seguence through all of the active channels once given the command to begin the analog to digital conversion Hardware interrupts are used to determine when each conversion is complete A number of seguential conversions are averaged to
9. AP major 1 0L TN 5 0L TN2 TN3 4 0L 81 0L TN4 TN5 64 0L BP 3 0L major TN TN2 7 0L TN3 TN4 8 0L 55 0L TN5 64 0L 2 0L CP 15 0L major TN2 TN3 0 75L TN4 TN5 16 0L DP 35 0L major TN3 TN4 11 0L TN5 16 0L 48 0L EP 315 0L major TN4 TN5 512 0L long double rad cur long double x long double y long double z long double temp temp x sgrtl 1 0L y z z return temp long double true mer dis long double a long double b long double c long double d long double e long double f long double temp temp a f b sinl 2 0L f c sinl 4 OL f d sinl 6 0L f e sinl 8 0L f return temp int main void char InputFile 80 OutputFile 80 temp 10 int Res FILE in FILE out char StrBuffer 500 struct record Buffer int size i count factor j char name MAXFILE extIMAXEXT char newext MAXEXT txt int zone long double north east printf Data Logger Conversion Utility n n printf Enter name of File to Convert gets InputFile printf n nEnter name of File for result gets OutputFile j fnsplit InputFile NULL NULL name ext fnmerge OutputFile NULL NULL name newext size sizeof Record if Buffer struct record malloc 500 size NULL printf Storage Allocation Failed n printf Exiting Program n exit 0 if fin fopen InputFile rb NULL printf s not Found in
10. ClearRXBuffer OT 55 while test return value DN HRA void ResetGPSRate char response 100 int error delay 1000 WriteString GPS PASHS SPD A 7 2 delay 1000 WriteString GPS PASHS SPD A 7 2 Tests indicate a single attempt fails where two seem to switch the baud rate reliably PortClose GPS delay 1000 GPS PortOpenGreenleafFast COM1 38400L N 8 1 if GPS NULL printf Port Open Failedin FatalError G103 exit 0 return NAMEFILE C include lt stdio h gt include lt dos h gt include lt time h gt include lt string h gt extern char LogFileNamell extern int LogFileNamed extern char SystemID FREER EERE EERE EERE EER EERE ER RR EER RR ER ER RE EER xL ft This routine gives the data file a unique name based on the tl 7 System ID year month day hour and minute UTC time FREER EERE EERE ERE RE EEE EEE EERE EEE EEE ER ERE EEE REE R EKER EKER EERE EER EEE RHEE EEE RH HER HHH void NameFile TZ environmental varible should be TZ GMTO and clock should be GMT struct tm time_now int month time_t secs_now char str 80 char tempstr 80 sprintf str c SystemID time amp secs_now time now localtime amp secs now strftime tempstr 13 d H M y time now 56 strcat str tempstr month time now gt tm mon 1 sprintf LogFileName s X str month LogFileNamed 1 PACING C
11. delay 1 Pacing ADLoop while ExitFlag CopyToFloppy SignOff GPSDelnit PortClose OT PortClose KVH PortClose GPS return O FREER EERE EERE ERE REE EEE EERE EEE EEE EERE REE RE EE RR EKER ER RE ER RR EER ER RE RR RR EER RR EN NE RR IGI EE bed jt af ft GPSlnit reset the receiver and then sets up 3 D nav and the differential parameters The receiver will return xj a GGA and POS message each second Any error is considered fatal 8 2 kaaa uid d Ei void GPSInit void int status Reset GPS to default settings if SendGPSCommand PASHS RST FatalError GOO2 ResetGPSRate Set filter to lower dynamics if IGPS H D Flag if SendGPSCommand PASHS LPS 1 2 1 FatalError G003 delay 100 if SendGPSCommand PASHS LPS 1 2 1 FatalError GOO3a J Set GPS Mode to 3 D if SendGPSCommand PASHS PMD O FatalError GOO4 Set Up to search for WAAS satellite if SendGPSCommand PASHS WAS 122 FatalError GOO5 Turn on ION corrections models if SendGPSCommand PASHS ION Y FatalError GOO6 Set WAAS to correct position output if SendGPSCommand PASHS WAS POS ON FatalError GOO7 enable precision mode if GPS Precision Flag if SendGPSCommand PASHS WAS PRC ON FatalError GOO7a Set INF message on if SendGPSCommand PASHS WAS INF A ON
12. Compass Calibration 1 OTWLine Enter on Positioned 3 QTWLine Press A to Abort 4 calibration command return string buffer Prompt sub string SUCCESS sub string Clear Display Set CalFlag no other ops Use Prompt Strings 35 printf line 14110 for testing only CompassCommand cal response send cal command printf line 143 for testing only ERROR sscanf response 5f amp heading scan for valid response if heading lastheading ERROR check 45 degree increment printf heading f f n heading lastheading for testing only if ERROR CalAbort Calibration return sprintf response s 03d xdf pos int heading format prompt QTWLine response 2 Write to Display lastheading heading 45 0 increment lastheading for next do wait for response status ReadCharTimed OT 30000L wait 30 seconds if status lt O CalAbort Cal Time Out return no response in 30 seconds abort c char status assure returned value is char disregard characters which are not valid A F and lt CR gt are valid Jwhile c OxOd c A c F if c OxOd CalAbort Cal User Abort return response other than lt CR gt abort while heading 315 0 compass system response changes at this stage reguires modifications to pr
13. InputFile 75 printf Exiting Program n n exit 0 if out fopen OutputFile wt NULL printf Error opening file s OutputFile printf Exiting Program n exit O printf n nPreprocessing n td decimate n tm marked only n printf tn none n nEnter d m orn do Res toupper char getch Jwhile Res D amp amp Res M amp amp Res N if Res D printf n nDecimation Factor gets temp sscanf temp d amp factor printf n n sprintf StrBuffer Time tMark tMode tZone tNorthing tEasting tAlt tRate_of_Climb tAirspeed tMagHeading tPitch tR oll tBall tCDI_1 tT_F1 tFlag1 tCDI_2 tT_F2 tFlag2 tGSCDI tGSFlag tCOG tSOG n fputs StrBuffer out j 0 do count fread Buffer size 500 in if lcount break for i 0 i lt count i if Res M amp amp Bufferli Mark 2 O Res M ifj O Res D II2UTM long double Bufferlil Latitude long double Buffer i Longitude amp north amp east amp zone Bufferlil Latitude double north Buffer i Longitude double east convert Bufferlil zone StrBuffer fputs StrBuffer out j factor ii Jwhile 1 fclose in fclose out return O 76
14. ReadRestart harderr handler error handler subsitute 42 status GreenleafSet16550TriggerLevel TRIGGER 04 if status lt O printf Error returned on Trigger d n status FatalError 1001 exit 0 GreenleafSetPortHardware COM3 IRQ5 0x2e8 KVH PortOpenGreenleafPolled COM3 9600L N 8 1 if KVH NULL FatalError 1002 GPS PortOpenGreenleafFast COM1 9600L N 8 1 if GPS NULL printf Port Open Failed n FatalError 1003 exit 0 UseRtsCts GPS 1 QT PortOpenGreenleafPolled COM2 9600L N 8 1 if QT NULL FatalError I004 UseXonXoff QT 1 OTReset if ReStartFileFlag DisplayRestart else DisplaySignOn SystemID V2 2P checkdisk check for floppy DisplayCompass OTWLine STARTING 2 ADSetup ETE EE ET EE EE EEE GetGPSParameters ETE EE ET EE EE EEE GPSlnit ClearRXBuffer GPS ClearRXBuffer QT do LoopCounter 1 ADProcedures ReadGPS GPSScan if WriteRecordFlag printf Time ld Mode 96d GPSFlag 96d DCIFlag d n Record Time Record Mode GPSFlag DCIFlag printf Lat If Long If Alt 96d Heading d n Record Latitude Record Longitude Record Altitude Record MagHeading if ADCount printf 96d d n n Record Pitch ADCount Record Roll ADCount WriteT oBuffer WriteToFile LEDUpdate CalCompass GetKeyboardlnput WriteRestart 43 ADCheckRady
15. The file is named using a combination of the System identifier the date and the time Zulu or Universal Coordinated Time which the particular logging session was started 13 The format is SystemID DDHHMM YYM where SystemID is the character A or B DD is the two digit day of the month HH is the two digit hour of the day in 24 hour format MM is the two digit minute of the hour YY is the last two digits of the year M is a character representing the month 1 9 A Oct B Nov and C Dec As noted previously the Data Logger files are stored in binary format The details of the binary storage format is defined by the C structure record which may be found in any of the program listings in Appendix 7 Note that an int is a 16 bit and a long int is a 32 bit integer A float is equivalent to the 32 bit floating point and a double is equivalent to the 64 bit floating point representation defined by ANSI IEEE 754 1985 IEEE Standard for Binary Floating Point Arithmetic Since it was never intended that the data files be read directly in binary format the above is more for informational than practical purposes The following tables indicate the variables stored in the files The first is exactly the same variables and in the same order as the raw binary data files described above Table 2 Legend for Latitude Longitude ASCII Conversion
16. radios are employed 2 Components All the components of the Data Logger System are houses in a single enclosure with the exception of the Compass System and User Display Control Console The locations of the major components are illustrated in the Figure below Figure 1 Component Layout Airspeed Microcomputer DC to DC Power Sensor and Card Cage Converter Analog Solid State Gyroscope GPS Multiplexer and Pendulum Receiver Single Board Computer The central component of the Data Logger is the single board computer This unit is essentially an IBM PC compatible computer that is fabricated on a single Industry Standard Architecture ISA board yet is capable of operation in a greater range of environmental conditions than a standard desktop personal computer The Industrial Computer Source Model SB486PV single board computer is designed around an Intel 486DX100 microprocessor and provides support for keyboard control video adapter both fixed and floppy disks two serial ports and one parallel port The Intel 486DX100 has a built in numeric co processor which would not normally be needed since no extensive floating point mathematical calculations are reguired in the operation of the Data Logger However the present compilation of the software assumes such a co processor is present The keyboard and video adapter display are used only during development and repair maintenance functions A rugged card cage passive motherboard is used to
17. static int CurrentBuffer 0 static int Bufferlndex 2 0 0 int input while IsRXEmpty GPS input getc in EOF while characters are available input ReadChar GPS get next character if input gt 0 valid read if input OxOd amp amp input OxOa 45 GPSBufferFlag CurrentBuffer O test of flags GPSBuffer CurrentBuffer Bufferlndex CurrentBuffer char input GPSBuffer CurrentBuffer Bufferlndex CurrentBuffer 0x00 else Jr input OxOd REMOVE AFTER TEST if input Ox0d GPSBuffer CurrentBuffer Bufferlndex CurrentBuffer 0x00 null terminate string Bufferlndex CurrentBuffer O reset index GPSBufferFlag CurrentBuffer 1 indicate buffer ready CurrentBuffer CurrentBuffer 0 1 toggle current buffer if Bufferlndex CurrentBuffer 0 GPSBufferFlag CurrentBuffer O if input OxOd return 0 return O void SetlON int x return disable ION switching if x set normal ION on if I1ONFlag WriteString GPS PASHS ION Y 2 IONFlag 1 else set normal ION off if IONFlag WriteString GPS PASHS ION N 2 IONFlag O void SetWAAScor int x if x if GEOSATFlag set WAAS COR on WriteString GPS PASHS WAS COR ON 2 GEOSATFlag 1 else set WAAS COR off if GEOSATFlag WriteString GPS PASHS WAS COR OFF 2 GEO
18. EE Ge A essa asd 6 GPS Receiver System easet bce yok ie eN Ge av tee es Dee citet NANG es Te Es Ge ue en 6 Wide 6 RADIO NAVIGATION INSTRUMENTS ssi e ive eee cose eos Ee STI TT eo be se GE Naa n seas 7 AIRSPEED SENSOR nos Ge NG dee ee EE es GIN TAVA DN ede AJATTAA aa A ee ee EE Ee ee 7 USER DISPLAY CONTROL CONSOLE ee ee ee ee es oe tenente seen ee naaagnas 7 POWER CONMERTER ER a A ANA AG ee ee SA er oe ee RM BINA en BLG BAGA NALIBING KNA 9 3 SOFTWARE RE EE OE RE eve sataa 9 SYSTEM OPERATING SOFTWARE sii Seed be SLR NR EWR RR GENE SR 9 POST FLIGHT DATA CONVERSION 10 OPERATION SES SeSe dees sege E ees ee AA ge ee 11 GENERAL OPERATIONAL PROCEDURES sisson ee ese se se ee se ee ee es ee ee ee ge ee RR Re eaa aa ee Re Re aa 11 OPERATIONAL ERROR CODES mainan A EN ee EG genee NA Lina deed Ge Ene 12 STRUCTURE AND CONTENT OF DATA FILES se i se se ee ee ee ee ee ee ee ee ee ee ee a 13 POST PROGESSING PROCEDURES ves bees se ees N ee oe vasaa ae Geo ee Reg ed ee GA ret te Gegee SNR Ee ed Ne gee Sek be wed eee ee ER GR KG 15 5 MAINTENANCE AND TROUBLESHOOTING e ee ee eene es ss se ee 000006 6000060000 000006 600006 16 GENERAL SYSTEM SOFTWARE 16 System Start Up ER raze a ER ARE NG De EE ee ekoa Na m Ee eene 16 Logger Parameter File ee t EE OE e NASN AL 16 GENERAL 17 Periodice Maintenance e eee N
19. ER ER ER RE RR RE t Writes the null terminated string buffer to designated line FREER EEE EERE EERE EEE EEE EERE EEE REE ER ERE EEE REE EERE REE EERE EKER HEHE EEE KER RH HER HHH void QTWLine char buffer int line char pos 4 ESC I position to col 1 line 1 char clear 2 ESC K clear to end of line pos 2 line 1 modify line to that selected WriteBuffer QT pos 4 exec positioning WriteBuffer OT clear 2 exec clear WriteString OT buffer 1 write string FREER EERE EERE ERE R EEE REE EE EERE EER EKER EERE ERE EKER EEE ERE JE Control Status of Q Term LED s FF FREER EERE EERE ERE R EERE EEE EERE EEE REE R ERE EEE EERE REE RRR E RE EH KER HEE R EER I void OTLed int lamp int function 59 char string 3 ESC P unsigned char c lamps numbered 1 5 from right to left 0 off 1 On 2 blink 3 toggle c Ox40 lamp 8 function string 2 c WriteBuffer OT string 3 REE ERE ELE AA SAAL MEEL MOM KAI NK ORDRE OC KA EN KIA KOC E ee ee esee pt Toggle Backlight on display 7 5 FREER EERE EERE EERE EERE EEE EERE EEE REE R EEE EKER EKER EKER ERE EERE EER HHH K EHR I void OTBackLite void char back 3 ESC V B WriteBuffer OT back 3 RIES ER NORTE SR ANI KA OE ELS IR EE NRK NESTA RIOR e IE E SEDE Re EDE FAK ppp 8
20. GPSFlag gt O amp amp LastTimeT 1L gt POSTime Record Mode amp Oxfffd GPSFlag PacingFlag WriteTimeFlag O else Record Time Record Mode 0 if GPSFlag gt 0 GPSFlag if GPSFlag 0 DCIFlag 0 PacingFlag WriteTimeFlag O GPSBufferFlag index O return JE ENE ME ee TA EEE ER EKKE K EED KA eae EUIS KK OE EE RE ED E ERE GE EKK RE SEKI EJ J WriteToFile uses previously defined file name if present or i generates a new name based on the date and time Then i writes the contents of the buffer to this file and closes the file each time 7 FREER EERE EERE EERE EEE EEE EERE EEE REE ER ERE E EER EERE EKER EEE RHEE EERE EER EEE EEE RH HER HHH void WriteToFile char directory 80 f char temp1 15 temp2 5 string 20 Log File if Recordindex lt 10 amp amp FlushRecordBufferFlag return not yet and no flush if Recordindex 0 FlushRecordBufferFlag O return if we get here there is data to write if LogFileNamed if ReStartFlag NameFile generate file name from date 50 if strlen DataDirPath If there is a path add it strcpy directory DataDirPath strcat directory LogFileName add filename strcpy LogFileName directory copy to global LogFileNamed 1 ReStartUpdateFlag 1 fnsplit LogFileName NULL NULL temp1 temp2 strcat temp1 temp2 strcat stri
21. Logger and indicate the progress of the logging operations Figure 2 Handheld Terminal The unit used in this application is the OTERM II manufactured by OSI Corporation The particular model chosen has a backlighted display RS 232 9 pin D type connector and the wide temperature option The alphanumeric display is four lines of twenty characters each The unit has a forty 40 key tactile keypad of which five are user definable Five light emitting diode LED indicators are available for displaying status information in addition to the alphanumeric display The five LED indicators are labeled REC GPS DIFF GYRO and MARK REC indicates that the Data Logger is recording data GPS indicates that the GPS receiver is providing 3 dimensional position data DIFF indicates differential corrections are being applied to the GPS data GYRO indicates that the vertical gyroscope has erected MARK indicates that the data being recorded is being marked to aid later analysis Below the five LED indicators are five custom keys labeled START STOP EXIT RESTART CAL COMP and TGGLE These are the only keys that the operator normally uses during operation of the system e START STOP allows the operator to start and stop logging data The GPS and GYRO LED s must be lit before logging can be started Logging can be started and stopped as often as required all the recorded data is stored in a single file e EXIT allows the operator to
22. Non Fatal Error Message Sound Alert Fl kl I void NonFatalError char text OTClear OTWLine Error Detected in 1 OTWLine text 2 OTWLine Procedure Canceled 3 delay 1000 QTBeep delay 1000 QTBeep delay 1000 OTBeepl delay 2000 OTClear FREER EERE EERE EERE EERE EERE EER EEE REE ER EEE EEE REE REE REE ERE REE ER EEE EERE EEE REE REE EE EER bd I Ja f UpdateCount writes the current record number to the display as an indication of continuing data collection FREER EERE EERE ERE REE EERE EE EERE EE REE ER ERE EEE REE E EERE ERE EERE EEE REE E EERE EEE REE REE ERE ER budd void UpdateCount char msg char pos 5 ESC K WriteBuffer QT pos 4 WriteString QT msg 1 FREER EERE EERE ERE REE EE EERE EER EEE EEE EERE EER EEE REE REE ERE REE ER EERE EERE EER EEE REE RHEE bed I SignOff display a message to the operater when the power may E safely removed from the system all file copied and the JE system is idle 2 FREER EERE EERE EERE EERE EERE EERE EER EEE EERE EEE REE REE REE EERE EER EERE EERE EER EEE REE ERE RR dd Ei 64 void SignOff void int i OTClear for i 1 i lt 6 i OTLed i O OTWLine Program Terminated 1 OTWLine You may safely shut 2 OTWLine down the system 3 delay 100 FREER EERE EERE ERE EEE EE EEE EERE EEE REE ER EERE EER EKER EKER ERE EERE EEE
23. SIIG Inc KVH C100 Compass Engine Technical Manual Rev G1 Middletown RI KVH Industries Inc Minimum Operational Performance Standards for Global Positioning System Wide Area Augmentation System Airborne Equipment 1999 RTCA DO 229B Model SB486PV Product Manual 1995 San Diego Industrial Computer Source Model AD12 8 Product Manual 1996 San Diego Industrial Computer Source Model AT 16P Product Manual 1997 San Diego Industrial Computer Source QTERM II User s Manual Revision 10 1997 Salt Lake City QSI Corporation VG400 Series User s Manual Revision A 2002 San Jose CA Crossbow Technology Inc 23 Appendices Appendix 1 BIOS Settings for Single Board Computer In general most of the settings within the BIOS CMOS setup of the SB486PV single board computer remain as configured in the standard factory defaults In addition to the microprocessor and ISA buss controller only the hard disk controller the floppy disk controller and the serial ports are essential for Data Logger operation It should be verified that the two on board serial ports are configured in the standard manner i e COMI at port 3f8 hexadecimal and IRO 4 COM2 at port 2f8 hexadecimal and IRO 3 Because both IRO 5 and IRO 7 are reguired for other devices by the Data Logger hardware the on board parallel port on the SB486PV must be disabled Since it is the normal operating procedure to insert a floppy disk in the Data Logger
24. before applying power the boot seguence of the SB486PV must be modified The BIOS must be configured to attempt to boot from only the fixed disk never the floppy Appendix 2 Configuration of Third Serial Data Port The SIIG VO Professional multifunction input output board Model 101809 used in this application reguires that only one serial port be active and that the other serial port and the parallel port be disabled The board is configured by means of jumpers There are fifteen sets of three pins each the sets are labeled JP1 through JP15 Each set may be jumped in three ways e H the center and upper pins jumpered e L the center and lower pins jumpered e Open no jumper installed The following table documents the jumper configuration used in the Data Logger Table 4 SIIG I O Board Configuration JP4 Me 24 Appendix 3 Configuration of the KVH Compass System The KVH C100 compass system is configured by software supplied by the manufacturer This is MSDOS program but can be run within the Windows environment The files C100USR EXE and CLIST TXT must be copied to a directory and the executable run from that directory Since the C100 compass system is mounted in separate enclosure and both the RS 232 serial communications and the DC power are routed through the single interconnection cable the following procedure should be used to run the setup program Use a serial extension cable to connect the computer running th
25. begun the session continues with the appropriate notations recorded in the data file The time stamped navigation messages from by the GPS receiver are used to provide the timing of data acguisition The receiver provides a position fix once per second and the receipt of this position fix causes the Data Logger to record the position information and all other measured parameters to the logging data file If while recording flight data the Global Position System loses lock and fails to provide data output the Data Logger will continue to record data using the internal operating system clock to trigger the storage of data points No position data will be available but all other variables continue to be recorded When and if the GPS reacguires the satellites logging will revert to timing using the GPS position message as described above GPS system time is used to set the internal real time clock of the underlying operating system MSDOS 6 22 upon initial GPS receiver lock on Wide Area Augmentation System After the RTCM service provided by Differential Correction Inc was terminated a new source of differential corrections had to be found It was determined that the United States Coast Guard RTCM broadcasts were not suitable because of the distance from the nearest station The Wide Area Augmentation System WAAS was chosen to provide the reguired differential corrections WAAS consists of wide area reference and integrity monitors gr
26. enables the use of the position of the WAAS satellite in the positional computation Disables or enables the application of the WAAS data to the positional computation Disable or enables the precision mode of WAAS corrections Disables or enables information to be sent to port either A or B describing the reception status of the WAAS signal The format of the information message is as follows SPASHR WAS INFsat sig lock where sat is the WAAS satellite number sig is the signal strength and lock is a bit mapped field indicating the state of the various decoding processes a lock value of 3F is fully locked This message is output once per second until turned off by command Disables or enable information to be sent to port either A or B describing the corrections being applied to the positional computation by WAAS data The format of the information message is as follows SPASHR WAS WCA num Where num is the number of satellite records in the remainder of the message Fach satellite record consists of seven 7 fields Satellite PRN number Fast correction WAAS Long term correction WAAS Ionospheric correction WAAS Tropospheric corrections Sum of all used correction Flag of used WAAS corrections where flag is no corrections e F only fast ON INE 26 L only long term S fast and long term only ionospheric G fast and ion H long ter
27. on the use of QSETUP and QDATA Files are in Chapter 3 of the OTERM II User s Manual The QTERM II sends and receives data and is supplied 5 VDC power through the single serial cable connected between the Data Logger enclosure and the unit Pin 5 is the standard ground pin for 9 pin serial connectors but pin 9 is used as the 5 VDC input for the QTERM II Use a serial extension cable to connect the computer running the QSETUP program to the cable in the Data Logger which is normally connected to COM2 the lower serial port on the single board computer card This allows the Data Logger to supply the 5 VDC to power the QTERM II handheld terminal 27 Appendix 7 Source Code System Operation Software The following modules are compiled together and linked with the a12drvc obj file provided by Industrial Computer Source ICS and GCLL LIB provided by Greenleaf Software Header files are also provided al2drvc h from ICS ibmkeys h asciidef h and gsci h from Greenleaf Software The memory model reguired by the ICS module is the large and therefore that model has been used the compilation The entry point of the program main is to be found in the file gpstest c ADFUNCT C include lt stdio h gt include lt dos h gt include lt math h gt include lt ctype h gt include lt bios h gt include lt alloc h gt include lt stdlib h gt include lt conio h gt include a12drvc h extern float PitchOffset PitchGain Rol
28. passes control the next task By these means an operating system which was never designed to be multitasking can be manipulated into a multitasking function For example one task reads available characters from the GPS system and places them in a buffer temporary storage This routine places each message in a separate buffer and sets a flag if a complete message is available Later another task interrupts the buffered message and acts upon the result In the meantime other tasks are performed such as servicing the analog to digital converter system scanning for and acting upon operator keyboard input processing data storing data and updating the LED s and text messages of the terminal When operating and collecting data this loop is executed approximately three hundred times per second A data record is taken each second and stored to a temporary buffer Every ten seconds this buffer is written to the fixed disk and the file is closed This procedure ensures that if software or hardware failure occurs during a flight logging session the data recorded with the possible exception of the last ten seconds is saved and recoverable The logger data is stored to the fixed disk in binary format that minimizes the time and disk space reguired to store each record A binary record is only 60 bytes long One hour of flight data occupies only 211 kilobytes of storage and thus a data file representing more than six hours of flight data can easily be
29. serial ports A DIP switch S1 configures the base address the individual switches are labeled A3 through A9 Switches A3 Ad and A6 are ON and the remainder are OFF to configure the address of 310 hexadecimal Jumpers accomplish the remainder of the configuration and these are set as listed below e BIP UNIP jumper set to BIP 10V 5V jumper set to 5V CLKO jumper present TMR EXT jumper set to TMR EXT EOC jumper set to EOC IRQ jumper set to IRQ7 25 AT16 P The AT16 P is configured to use programmable gain settings and is set to output 45 volts All other settings and jumpers are on the standard default settings if present A DIP switch S1 on the AT16 P board configures these setting The individual switches labeled GMO GM1 and GM2 are set OFF the remainder labeled G 2 SHO GPO GP1 and GP2 are set ON Appendix 5 Ashtech WAAS Software Commands The G12 software Version Gt35 has been modified to receive and apply the WAAS corrections to the positional data output of the receiver The following are some of the commands added and do not appear in the Ashtech G 12 Reference Manual only those actually used in this application are described SPASHS WAS OFF prn SPASHS WAS POS OFF ON SPASHS WAS COR OFF ON SPASHS WAS PRC OFF ON SPASHS WAS INF port OFF ON SPASHS WAS WCA port OFF ON Disables or enables the receiver to search for the WAAS satellite prn is the satellite number 122 in this case Disables or
30. set gains ADParameters 0 O ADParameters 1 2 ADParameters 2 O status call driver if status O FatalError A001 return on error ADParameters 0 3 ADParameters 1 3 ADParameters 2 1 status call driver if status O FatalError A001 return on error ADParameters 0 4 ADParameters 1 13 ADParameters 2 2 status call driver if status O FatalError A001 return on error return O Ed EE EE SE LE AE ELE SEE EINER PTT ENER NE JER RE oro en PP Ej ADProcedures performs two functions f fe 1 Start a conversion if a conversion is not in progress A E 2 Read and store the data if a conversion was completed 5 FREER EERE EERE EERE EER EERE EERE EEE EKER EERE EE REE E REE REE EERE EEE RHEE EERE EEE RH HER HHH unsigned ADProcedures static unsigned channel gain l status temp offpntbuf offdatbuf double data tempx tempy static int temp1 int pitch roll extern int ADCount if ADInProgressFlag ADTask 11 ADParameters O 1 status call driver if status O FatalError A002 return on error temp1 ADDataBuffer offdatbuf FP OFF temp1 temp ADPointBuffer offpntbuf FP OFF temp ADTask 9 ADParameters 0 ADParameters 1 ADParameters 2 FP OFF ADTempBuffer ADParameters 3 FP SEG ADTempBuffer status call driver if status O FatalError A003 ADInProgressFla
31. sprintf str1 3i AS sprintf str2 5 2f ball WriteBuffer QT position1 4 WriteString QT str1 1 WriteBuffer OT position2 4 WriteString OT str2 1 66 RESTART C include lt stdio h gt include lt stdlib h gt include lt dos h gt include lt string h gt include logger h extern char LogFileNamell extern intReStartMarklndex Marklndex int ReadRestart void int WriteRestart void extern FILE restart extern int LogFileNamed extern int ReStartFileFlag extern int ReStartUpdateFlag FREER EERE EERE ERE R RE RR RE RR RR RR EER RR ER ER RE EER ul This routine looks for the file restart ini If it is Py Ug present and can be read the operator is given the option J to restart data loggong to the same file for which logging was interrupted S j xf restart ini will only exist if a failure caused the data to stop in an abnormal manner i e a Fatal Error etc ef is Normal termination of the program deletes the restart file FREER EERE EERE EERE EEE EEE REE EERE REE ER ERE REE REE E REE R EEE EERE EERE EEE EEE KEE RH HER HHH int ReadRestart void extern FILE restart char filename FileName char mark MarklndexNumber char marker char buffer 80 char tempbuffer 80 char localfilename 80 int length int localmarknumber int localfileflag O localmarkflag O FILE tempfile if restart fopen restar
32. start the shutdown procedures after the final termination of data logging EXIT ing copies the present data file to floppy disk 1f present and terminates the Data Logger functions allowing the power to the system to be safely turned off e RESTART allows the operator to restart data logging after some abnormal behavior terminated the previous logging session If restarting is possible the operator will be informed by text on the display e CAL COMP calibrate compass allows the operator to command the system to perform an autocompensation procedure on the magnetic compass system This key is inoperative if the Data Logger is presently logging flight data e TGGLE toggle allows the operator to mark portions of the flight for later analysis Pressing the key once starts the marking process pressing the key again ends marking The marks are numeric tags incrementing automatically The operator is informed of the numeric value of the tag by text on the display Marking is only functional while the Data Logger is recording data No other inputs or keys are reguired during normal operations of the Data Logger however two more keys are active to control the display functions See the Operation section for details Some additional functions and displays are provided for maintenance purposes these are discussed in the section Maintenance and Troubleshooting Power Converter The complete Data Logger reguires approximately 4 0 amps from the ai
33. Aviation Human Factors Division Institute of Aviation University of Illinois at Urbana Champaign 1 Airport Road Savoy Illinois 61874 IPC DATA LOGGER A Flight Data Recorder Operation Manual Change 2 Lester Lendrum Henry L Taylor Donald A Talleur amp Tom W Emanuel Jr Technical Report AHFD 03 8 FAA 03 2 March 2003 Prepared for Federal Aviation Administration Civil Aeromedical Institute Oklahoma City OK Cooperative Agreement DTFA 2001 G 037 Forward To Change 2 Change 2 to the Technical Reports ARL 02 2 FAA 02 1 February 2002 titled PC DATA LOGGER A Flight Data Recorder Operation Manual Change 1 and ARL 00 8 FAA 00 5 July 2000 titled IPC DATA LOGGER A Flight Data Recorder Operation Manual has been prompted by the necessity to replace the vertical gyroscopes due to anticipated and experienced end of service limits The mechanical gyroscope of the original design has been replaced by a solid state gyroscope system The new system has a claimed MTBF Mean Time Between Failure of 50 000 hours This document incorporates the changes made to the hardware of the IPC Data Logger the changes in power converter reguirements and some minor software changes unrelated to the normal operation of the system but useful in verifying the replacement hardware Figure 1 has be changed to reflect the hardware modifications Forward To Change 1 Change 1 to the Technical Report ARL 00 8 FAA 00 5 July 2000 tit
34. Compass fails to respond to commands C002 Failed to obtain magnetic heading G001 Could not send command to GPS receiver G002 Could not reset the GPS receiver G003 Could not set initiate low dynamics in GPS receiver G004 Could not set navigation mode in GPS receiver G005 Could not start WAAS mode of the GPS receiver G006 Could not set ION mode of the GPS receiver G007 Could not set WAAS POS mode of the GPS receiver G007a Could not set WA AS precision mode of the GPS receiver G008 Could not request WAAS INF message from the GPS receiver G009 Could not request NMEA GGA message from the GPS receiver G010 Could not request NMEA POS message from the GPS receiver G011 Could not request WAAS WCA message from the GPS receiver G103 Could not change baud rate of the GPS receiver 1001 Error initializing 16550 serial UARTS 1002 Error initialing COM3 serial port compass 1003 Error initialing COMI serial port GPS receiver 1004 Error initialing COM serial port terminal S001 Failed to find file logger ini This file must be present for the system to start S002 Data in file logger ini is incomplete or corrupt W001 Error opening data file W002 Error writing to the data file W003 Error closing the data file Structure and Content of Data Files Each data file is automatically assigned a unique name when a logging session is started This is done to minimize the number of steps the operator must do to record a session
35. EEE EERE EEE REE ER EEE EERE EKER EEE REE RHEE bed void GetKeyboardinput void int status char buffer 22 char mess1 5 ESC I B char mess2 5 ESC K if ISRXEmpty OT return return immediately if no characters if PeekChar QT 2 if not tilde single character command if status ReadChar QT lt O return return on error switch status case B O Term BackLite case G QTBackLite return case C O Term Contrast case H OTContrast return case O case 1 case 2 case 3 case 4 case 5 WriteBuffer OT mess1 4 WriteBuffer OT mess2 2 DiagnosticFlag status return default return else if status ReadChar QT lt O return read and discard first if status ReadChar QT lt O return read and retain second switch status case 5 toggle marking 62 case 4 case 3 case 2 case 1 if RecFlag return must be recording to toggle if MarkFlag not presently marking MarkFlag 1 set Mark flag QTLed 1 1 MARK LED on increment index sprintf buffer MARKING 9d Marklndex Record Mark Marklndex QTWLine buffer 4 Display message ReStartUpdateFlag 1 set flag to indicate the restart ini file should be updated return else presently marking MarkFlag O reset Mark flag Recor
36. FatalError G008 Set message GGA ONLY SENT IF POSITION COMPUTED if SendGPSCommand PASHS NME GGA A ON FatalError GOO9 Set message POS ALWAYS SENT 44 if SendGPSCommand PASHS NME POS A ON FatalError GO10 Request WAC message if SendGPSCommand PASHS WAS WCA A ON FatalError GO11 void GPSDelnit void WriteString GPS PASHS RST 2 SendGPSCommand PASHS RST FREER EEE R EER RE RR RE RR EEE REE REE REE ER EERE EER EKER EKER ER RE EERE EER EERE EERE EER EEE REE ERE ER eee d je SendGPSCommand attempts five times to send the command W JE to the receiver It looks at the response of the receiver and scans ft for ACK which indicates the command was accepted It will ui 1 attempt three repeations before returning failure JA FREER EER EERE ERE REE EE EERE EERE EERE ER EERE EER EERE EKER EKER EERE EER EEE REE R EEE RHE REE EEE uid d Ei int SendGPSCommand char buffer p int status i int count 0 char response 100 char ack ACK do forli 0 i lt 5 i ClearRXBuffer GPS printf s n buffer testing only if status WriteString GPS buffer 2 O break if status O FatalError GOO1 ReadStringTimed GPS response 99 2 1500L if GPS gt status ASSUCCESS if strstr response ack NULL return 1 count while count lt 3 return 0 int ReadGPS void
37. Heading Description Format and Limits Time Universal Coordinated Time HHMMSS Mark Observer Data Mark Auto incrementing integers Mode GPS Operational Mode 0 none 2 non diff 3 diff Zone UTM Zone Integers between 1 and 60 Northing UTM Northing Coordinate Meters north of the Eguator Fasting UTM Easting Coordinate Meters East of Central Meridian For this Zone 500 000 Alt Altitude Above MSL Units of feet Rate of Climb Vertical Speed Units of feet minute Airspeed Indicated Airspeed Units of Knots MagHeading Magnetic Heading Degrees Pitch Pitch Attitude Degrees nose up Roll Roll Attitude Degrees right Ball Coordination Yaw Units of Ball Width CDI 1 VOR LOC 1 Course Deviation Percent Full Scale limit at 120 right T FI 1 To From Indicator 1 TO 1 FROM 0 none Flagl VOR LOC 1 Flag 1 GOOD 0 FLAGGED CDI 2 VOR LOC 2 Same as Above T F2 Flag2 GSCDI Glideslope Course Deviation Same as VOR LOC CDI s up GS Flag Glideslope Flag Same as VOR LOC Flags COS Course Over Ground Degrees Derived by GPS SOG Speed Over Ground Knots Derived by GPS Post Processing Procedures A mentioned above the Data Logger produces a copy of the data file on a 34 floppy disk at the end of each logging session This file is in the binary data format The Post Flight Data Conversion Software is used to convert these files to ASCII text format The program is used depends on if the horizontal p
38. JA Reset OT Clears dislay Clears LEDs resets stored parameters EN udi EERE COEUR EE KE TI EE EE TATEN EKAT NN KKKA TATIN KAN KIAN KK POE OR NAKAKALAM CA N KASKI bud I void OTReset void char rst 2 ESC M WriteBuffer OT rst 2 delay 350 command reguires 300 ms ERPS RE WE AE Ak RSE LS EL EA MA EL DAE AL EA AA KORR EE ER 8 Adjust Contrast on Q Term Screen tf J di FREER EERE EERE RE RR RE RR RR RR ER RR EER RR ER ER void OTContrast void char c char msg 3 ESC L c CurrentContrast 0x04 if c gt Ox78 c Ox60 CurrentContrast msg 2 char c printf Contrast is x hex n c WriteBuffer OT msg 3 KKK K K H X K H X H K X H H K H H K K K H H K H X H K X H H K KH H X K H X H K H X H H X H H H K H X H H K H H K K H X H H X H K K H H H X H H K K H H K H X K X Next three routines control the buzzer of the Q Term j8 FREER EERE EERE EERE EER EEE EERE EERE EEE EERE REE RE EER EKER EEE EERE EERE EERE HERE ER HEE RH HK void OTBeep void char beep 3 ESC 0 B 60 WriteBuffer OT beep 3 void OTAudioOff void char beep 3 ESC 0 WriteBuffer QT beep 3 J void OTAudioOn void char beep 3 ESC 0 A WriteBuffer QT beep 3 FREER EERE EERE ERE REE EE EERE EERE EE REE ER ER RE EER EEE EEK ERE REE EERE EER ER RE EERE EE REE ER EERE EER kund ft al pt Display and Announces Occurance of a
39. REE ER EERE EER EEE REE ERE ER eee y fe CopyMessage displays during the copy to floppy process warning the operator to wait until the process is completed FREER EERE EEE EERE EER EER EKER EERE E REE E EERE REE ERE EER EEE REE R EEE REE REE EEE ER uid d EEK HY void CopyMessage char s int i for i 1 i lt 6 i OTLed i O OTClear OTWLine Please Wait 1 OTWLine Writing File 3 QTWLine s 4 FREER EEE REE RE ER EERE EERE EERE EER EEE EERE EEE REE REE EERE EERE EER EKER EEE EEE RH E W DisplayRestart informs the operator that a restart ini file j was found an data may be appended to that file if desired jd Tf FREER EEE EERE ERE R EERE EEE EERE EEE EEE ER EERE EER EERE EKER EEE REE EER HEE REE EE EER HEE RH HH void DisplayRestart void OTClear QTWLine RESTART POSSIBLE 1 QTBeep FREER EERE EERE EERE EEE EERE EERE EE REE ER EERE ER EE RR EKER ER RE EERE EER EERE EERE EER EEE REE RE EER REE REE pt ad DisplayReady display either STANDBY or READY depending Mi on the state of the datalogger FREER EERE EERE EERE EEE EEE EERE EEE REE ERE REE EER ERE REE R EEE EER EEE REE E EERE EEE REE REE RHE ER TERRE ER void DisplayReady void if BannerFlag 1 amp amp RecFlag amp amp GPSFlag amp amp DCIFlag amp amp GyroFlag ReStartFileFlag amp amp ExitFlag QTWLine READY 2 QTBee
40. SATFlag O FREER EERE R EER EERE EERE EERE EERE EER EKER EERE EER EER EKER ERE ERE RE EER EERE EERE EER EEE REE ERE ER RRR KH JA 46 GPSScan parses the buffers filled by GPSRead GPSBufferFlags are J used to determine if buffer is complete f GPSFlag and DCIFlag are set to 10 each time a valid position comp Jt and diff mode usage are determined These are decremented ata once per second rate if no computation or non diff is detected ui y FREER EERE EERE EE EERE EERE EE REE R EERE EER EERE EKER ERE EERE EEE REE E EERE EEE RHE REE EEE budd void GPSScan void int index status char ns ew static unsigned long GGATime POSTime LastTimeT LastTimeD static double GLat GLon GAlt PLat PLon PAIt Rate O Geoidal 30 static int GFlag PFlag float COG SOG double temptime static char ggaformat GPGGA If If c 11 96c 961d 96 2d Yo Af 96If M 96If static char posformat PASHR POS d 96 d If If 96 c 96If 96c 9lf YF YF VIF added for WAAS int error satcount I Corrected O WAASFlag O passcount O char OKCodes UHG char startread static char wacformat PASHR WAS WCA d static char infformat SPASHR WAS INF 96 d 96 d x char satascii 5 static char part d f f f f f c char readformat 300 char SVstatus 12 2 int SVx 12 end of adde
41. Software Fatal Error xj JA X FREER EERE EERE ERE R EERE EERE EERE EER EKER EERE EER EERE EKER EEE EERE EEE EEE EERE EEE RHE REE ER EER id EHH HY void FatalError char message char string 20 int i sprintf string Fatal Error s message QTClear OTWLine string 1 OTWLine Record Error Number 2 OTWLine To Restart reset or 3 OTWLine cycle power on unit 4 forli 0 i lt 3 i QTBeep delay 1000 WriteString GPS PASHS RST 2 exit 0 Kuk pk KER HH HR ft Displays the Sign On Message and System ID Tests LEDs and Beep f a FREER EERE EERE EERE EEE EERE EERE EERE EER EEE EEE REE RR NEER ER RE EERE EERE RR N RR RR EER RR EN N RR HE ER RRER EERE EEK ER void DisplaySignOn char c char st char buffer 20 int i QTReset QTWLine IPC Data Logger 1 sprintf buffer System c c OTWLine buffer 2 sprintf buffer 96s st QTWLine buffer 3 forli 1 i lt 6 i 61 OTLed i 1 LED s on delay 300 QTBeep delay 500 for i 5 i gt O i QTLed i O LED s off delay 300 delay 3000 FREER REE EERE EERE EERE EERE ER EERE EER EERE EKER ERE EERE EEE REE E REE EKER EKER EH ERE ER Erik hee E Looks for KeyPresses on the OT Terminal scans for valid inputs X t sets flags for the various functions to be performed kay p st FREER EERE EERE ERE REE EE RR RR ER RR EER RR EN EERE EER EEE
42. Time PresentTime else time amp PresentTime if diff PresentTime WriteTime O return else Record Time diff WriteTimeFlag O WriteRecordFlag 1 QTFUNCT C include gsci h include ibmkeys h include asciidef h include lt stdio h gt include lt stdlib h gt include lt string h gt extern struct record unsigned long Time int Mark int Mode double Latitude double Longitude int Altitude int RateOfClimb int Airspeed int MagHeading int Pitch int Roll float Ball int CDI1 int CDIT F1 int CDIFlag1 int CDI2 int CDIT F2 int CDIFlag2 int GSDev 58 int GSFlag int COG int SOG J extern struct record Record extern int DiagnosticFlag extern PORT GPS extern PORT OT extern unsigned char CurrentContrast extern char SystemID extern int RecFlag MarkFlag Marklndex ReStartMarkIndex ReStartUpdateFlag ReStartFlag CalFlag ReStartFileFlag GPSFlag DCIFlag CompassCheckFlag GyroFlag FlushRecordBufferFlag ExitFlag extern int BannerFlag PacingFlag FREER EERE EERE EERE EERE EERE EER EEE REE R EERE ERE EKER EEE ERE EERE EER EHR EER I pt bi J Clear Only the Text on O Term Terminal a fJEHKKK KKK KK KK K K K K V KK LK NXK K N K N void OTClear void char str 2 Ox1b E WriteBuffer OT str 2 FREER EERE EERE EERE EERE EERE EERE ER
43. a AA GAD ee bee gear 17 Calibration teo ee EE N OK N EE EE ON EEN EK 17 TROUBLESHOOTING Sies oe ts e TOT avaa mas Ta Ge eo 17 General Computer Problems crece be ego etr a ETES TS E Ene te ere ge ere 17 Compass System Problems uei ANGARA AA 18 GES System Problems se ERA s T N TANI Sev eue Ee Sedan aneita 19 JSE IN24 VOLTAIRERAF TEE EE ee GE aa ee 22 ACKNOWLEDGMENTS AND DISCLAIMER esee esse se ee ss 006000 000000 000006 6000060000 00000600 Ee ee seen Ge ee 60 22 REFERENCES EE EE EE ER EE EE OE N EE OE DE 23 HARDWARE AND SOFTWARE REFERENCE MANUALS esse es ssssss see ee ee ee es se see ee ee ee ee ese ee ee ees se see 23 Nu ANY DI LO EE Ten TE TE 24 APPENDIX BIOS SETTINGS FOR SINGLE BOARD COMPUTER se se ese a 24 APPENDIX 2 CONFIGURATION OF THIRD SERIAL DATA PORT aaa 24 APPENDIX 3 CONFIGURATION OF THE KVH COMPASS SYSTEM ee ese ese ee ese ee ee ee ee ee nennen ee ee ee ge ee ee enne 25 iii AIDS MM MR Na AO ER EA OE EN saa bn OER EL BO id 25 ALTOS ed ee EEN RR ee Ua ute ALE 26 APPENDIX 5 ASHTECH WAAS SOFTWARE COMMANDS ee ese ee ee ee ee ee ee ee ee ese ee ee ee ee ee ee ee ee ee ee ee Re ee ee ee ee 26 APPENDIX 6 INITIAL SETTINGS FOR DISPLAY CONTROL CONSOLE 200000000000000 ee se ese ee ee ee ee ee ee ee ee ee 27 APPENDIX 7 SOURCE 28 System 28 Basic 69 UTM Post Flight Software sees s
44. aaan ae e n ea a e a nan a naa ae a aa aa a na na trennen nennen 72 iv 1 Introduction The IPC Data Logger a flight data recorder is designed to support research involving pilot performance in executing instrument flight procedures The system is designed for use in small single engine aircraft and can easily be removed to return the aircraft to normal service The system is based on a commercial single board computer recording data at the rate of one frame per second In addition to aircraft position and altitude pitch roll yaw magnetic heading vertical speed and airspeed are recorded The radio navigation displays Very high freguency Omni Range LOCalizer VOR LOC and Glideslope are also recorded Provision is made for the check pilot operator to mark sections of the flight records to aid in the subseguent analysis of the data Apart from connection to the pitot static system and the navigation displays instruments internal to the Data Logger generate all data The data logger is housed in an aluminum enclosure 22 inches in width 24 inches in length and approximately 12 inches in height The weight is approximately 40 pounds To install the IPC Data Logger in the aircraft Beech Sundowner C 23 in this application the rear seats were removed and the logger mounted in their place a custom floor plate to which the Data Logger is mounted replaced the original floor of the rear seating and baggage area A flux gate magnetic compass sy
45. abort with Fatal Error do temp 0 ReadChar KVH purge remains of first line Jwhile temp 0 OxOd amp amp temp 0 gt 0 ReadCharTimed KVH 100L wait for first character of next if command O delay 100 increase delay for cals else delay 5 if response1 NULL ReadStringTimed KVH response1 40 0x0d 100L ERRHAND C include lt stdio h gt include lt conio h gt include lt dos h gt include lt ctype h gt define IGNORE O define RETRY 1 define ABORT 2 pragma warn par int handler int errval int ax int bp int si unsigned di int drive int errorno di DI 37 if ax lt O hardretn ABORT drive ax amp OxOOff errorno di amp OxOOff if drive O hardretn ABORT sprintf msg Error 96s on drive c r nA bort R etry Ignore err msg errorno A drive hardresume IGNORE return ABORT pragma warn par GETSYS C include lt stdio h gt include lt string h gt include lt ctype h gt include lt stdlib h gt extern char SystemID extern float PitchOffset PitchGain RollOffset RollGain AltOffset AltGain BallOffset BallGain extern char DataDirPath 50 void FatalError char n void GetChar char x int y float GetFloat char int GetString char buffer char path FREER EERE EEE EERE REE REE RR ER RR EER RR ER ERE REE RE XI This routine looks for logger ini f
46. agnetic Heading Chk char msg2 Press Enter to Cont 34 OTWLine msg1 1 OTWLine msg2 4 do head GetMagHeading Reguest heading from compass sprintf buffer 4 1f xdf head format for display OTWLine buffer 2 write it to line two delay 1000 if IsRXEmpty QT ReadStringTimed OT buffer 10 0x00 1 if buffer O B buffer 0 G OTBackLite if buffer 0 Ox0d test 1 if buffer O C buffer O H QTContrast ClearRXBuffer OT while test OTClear float GetMagHeading void float heading char HDG d1 char ans 40 int ERROR O CompassCommand HDG ans ERROR sscanf ans f amp heading if ERROR FatalError C002 return heading command to get heading data call command routine scan result for heading exec Fatal error routine ERPS ERI AS EE EEE BSE NENT SE ALN KA KA HE Me RR EAE SE RI OE SE te ende oe NBA DE 8 Prompts User through 8 point calibration procedure NI Checks for errors which are considered non fatal 4 idi FREER REE RE RR EERE ER RR EER EEE EERE EEE void CalCompass void char cal ce1 char response 40 char pos Position A C to char test complete float lastheading 0 0 heading int ERROR int status char c if CalFlag return GPSDelnit GPSFlag DCIFlag O OTClear CalFlag 1 QTWLine
47. at subseguent flight data be recorded to a new file the aircraft must be flown straight and level until the GYRO LED is lit then if the GPS LED is also lit pressing the START STOP key begins recording to a new file Other Features Calibrate Compass When NOT recording data the operator may press CAL COMP to begin a compass calibration autocompensation procedure Messages on the handheld terminal will guide the operator through the series of steps reguired to do an eight point ground calibration of the magnetic compass engine The operator may abort this procedure at any time The unit displays information on the accuracy of the calibration upon completion Details on this procedure may be found in the Maintenance and Troubleshooting section Display Contrast By pressing C on the keypad the operator can increase the display contrast on the terminal Each press increases the contrast until maximum contrast is reached and then wraps around to minimum contrast Display Backlight By pressing B on the keypad the operator may toggle the backlighting on the LCD display File Recovery If after a flight the data file is not copied to the floppy disk for any reason that file is retained on the hard disk marked as not copied The next time the system is used any un copied data files previously stored will be copied to the floppy disk in addition to the data file just recorded One floppy disk can contain approximately 6 75 hours of fligh
48. avigation course deviation indicators CDI s and associated flags can be displayed on the third line of the alphanumeric display Pressing 1 displays the pitch and roll in degrees positive is right or up Pressing 2 displays the airspeed in knots and the ball position in unit of ball width Pressing 3 displays the VOR LOC 1 course deviation in percent and the TO FROM status Pressing 4 displays the VOR LOC 2 course deviation in percent and the TO FROM status Pressing 5 displays the Glideslope course deviation in percent and the flag status Pressing 0 clears the display Errors in High Level Channels The high level channels are defined as those for which the gain of the A D system 1s less than five These include pitch data roll data yaw or ball data airspeed data If yaw and airspeed high level inputs are both exhibiting errors the common source may be the 10 volt precision reference voltage that is used to excite these sensors This reference voltage is generated on the AD12 8 board routed to the AT16 P via the interconnecting cable and is distributed to the sensors via a terminal strip located near the AT16 P board If the error is limited to a single high level channel examine the wiring to between that sensor and the AT16 P If both the pitch and roll channels are exhibiting errors the vertical gyroscope may be at fault The detection of the fault is most easily accomplished by substit
49. be erroneous the first step would be to perform a new calibration autocompensation procedure This is accomplished by powering the Data Logger and moving the aircraft to an area free from metal structures and underground electrical power cables This procedure is most easily accomplished with two operators one to maneuver the aircraft and one to operate the handheld terminal The aircraft must be maneuvered to eight 8 distinct headings during this process The operators will be guided through the procedure by a sequence of messages on the Console At the end of a successful calibration procedure two single digit numbers are displayed 0 9 the higher the numbers the better The first digit represents the quality of the compensation a score of 7 or above indicates an accuracy of 2 degrees or better The second digit represents the quality of the magnetic environment a score of 5 or better is acceptable If acceptable scores are not achieved the procedure should be repeated after moving the aircraft to a different physical location If calibration does not correct the problem the optimum diagnostic procedure would be to substitute a KVH C100 compass from another Data Logger system to verify the problem is the compass engine If the replacement unit solves the problem the defective unit should be returned to the manufacturer for repair or replacement If the substitution of the compass engine does not solve the problem the diffic
50. before reguiring replacement Calibration The only components that may reguire calibration with the exception of the compass engine the calibration of which is addressed later in this section are those associated with the analog systems The calibration of the analog to digital converter system itself is addressed later in this section and is a rather lengthy procedure which is described in the respective manuals of the two components AD12 8 and ATI6 P It should be noted that calibration of these components is the only form of adjustment for correcting errors in the low level A D channels see Errors in Low Level Channels later in this section The remaining variables pitch roll ball yaw and airspeed may be calibrated by changing the respective gain and offset parameters in the logger ini file previously mentioned Each Data Logger has a program adtest exe which may be useful in the adjustment of the gain and offset numbers This file is located in the same directory as the main Data Logger file gpstest exe and uses the same logger ini data as the main Data Logger program adtest exe displays on the VGA display all of the above mentioned variables It does not require the compass engine or the handheld terminal to be attached or functional adtest exe only requires that the A D system is operational i e communicating with the single board computer Troubleshooting General Computer Problems To operate the Data Lo
51. clude lt io h gt long double d rad M PI 180 0 long double major 6378137 0L long double flat 1 0L 298 257223563L long double recflat long double bmajor long double eccensar eccenbsqr long double TN AP BP CP DP EP long double FE 500000 0L long double OK 0 9996L struct record unsigned long Time int Mark int Mode double Latitude double Longitude int Altitude int RateOfClimb int Airspeed int MagHeading int Pitch int Roll float Ball int CDI1 int CDIT F1 int CDIFlag1 int CDI2 int CDIT F2 int CDIFlag2 int GSDev int GSFlag int COG int SOG struct record Record void convert struct record rec int zone char str sprintf str ld t d t d t d t 1 5 0IfVt96 15 0If t d t d t d t d t d t d t 5 2f t d t d t d t d t d t d t d t d t d t d n rec Time rec Mark rec Mode zone 72 rec Latitude rec Longitude rec Altitude rec RateOfClimb rec Airspeed rec MagHeading rec Pitch rec Roll rec Ball rec CDI1 rec CDIT F1 rec CDIFlag1 rec CDI2 rec CDIT F2 rec CDIFlag2 rec GSDev rec GSFlag rec COG rec SOG long double dg2rads long double degrees long double temp1 temp2 temp3 format of geodetic parameters dddmm mmmmmm temp1 degrees 100 0L if temp1 gt OL temp2 floorl temp 1 else temp2 ceill temp 1 temp3 temp 1 temp2 100 0L temp2 temp3 60 0L temp1 temp2 d rad r
52. d Mark O sprintf buffer Last MARK was 5d Marklndex QTWLine buffer 4 Display Message QTLed 1 0 MARK Led off return calibrate compass if CalFlag amp amp ReStartFileFlag amp amp RecFlag if not cal ing and no possibility of restart and not recording data allow a calibration CalFlag 1 set calibration flag return Use Restart if ReStartFileFlag amp amp RecFlag amp amp CalFlag amp amp GPSFlag ReStartFlag 1 Marklndex ReStartMarklndex RecFlag GyroFlag 1 QTWLine Appending 1 QTLed 5 1 REC LED on return exit program if RecFlag amp amp CalFlag amp amp CompassCheckFlag ExitFlag 1 unlink restart ini return if RecFlag amp amp CalFlag amp amp CompassCheckFlag amp amp GPSFlag amp amp DCIFlag amp amp GyroFlag ReStartFileFlag RecFlag 1 set RECORD Flag QTLed 5 1 set REC LED on ReStartUpdateFlag 1 OTClear QTWLine Recording 1 unlink restart ini return if RecFlag if recording RecFlag O reset RECORD Flag 63 OTLed 5 0 set RECORD LED off OTLed 1 0 FlushRecordBufferFlag 1 ReStartUpdateFlag O unlink restart ini QTWLine 1 QTWLine Press EXIT to quit 3 QTWLine START to resume 4 return default return FREER EERE EERE ERE REE EE EERE EERE EER EKER EERE 1 Display
53. d variables if GPSBufferFlag O amp amp GPSBufferFlag 1 return no buffers filled index GPSBufferFlag O O 1 use buffer O if filled if strstr GPSBuffer index GPGGA NULL is a GGA message if sscanf GPSBufferlindex ggaformat amp temptime amp GLat amp ns amp GLon amp ew amp GFlag amp GAIt amp Geoidal 8 if scan good transfer data GGATime temptime printf Scanned GGA message at ld n GGATime if ns S GLat 1 0 if ew W GLon 1 0 Record Time GGATime Record Latitude GLat Record Longitude GLon Record Altitude 3 2808 GAlt Geoidal Record RateOfClimb 196 848 Rate removed for WAAB system if GFlag 2 if differential set bit O 1 DIT Record Mode 0x0001 DCIFlag 10 47 else Record Mode amp Oxfffe if not clear bit O E if DCIFlag gt O amp amp LastTimeD POSTime DCIFlag LastTimeD POSTime removed to here always GPS valid if this message is recieved so Record Mode 0x0002 set bit1 1 GPSFlag 10 set GPSFlag LastTimeT POSTime GPSBufferFlag index O mark buffer as read return if strstr GPSBuffer index SPASHR WAS WCA NULL is a WAC message LastTimeD POSTime printf Scanned WCA message at ld n POSTime if sscanf GPSBufferlindex wacformat amp satcount 1 scan fa
54. determine the final value to be recorded for each of the variables measured A precision 10 volt DC reference voltage output is provided by the AD12 8 to excite those sensors which reguire such an external source the vertical gyroscope pendulum and airspeed sensor Vertical Gyroscope A solid state vertical gyroscope is employed to provide aircraft pitch and roll information for the Data Logger The component used is the Model VG400CC manufactured by Crossbow Technology Inc The intialization time is less than 1 minute The unit weighs 0 3 pounds and reguires 0 4 amps running current at 9 30 volts DC The operational limits are 90 degrees of pitch the roll axis is continuous 360 degrees The unit is mounted in a specially fabricated carrier which also is used to mount the Pendulum system described below and this carrier is further isolated from the Data Logger enclosure by Lord mounts The outputs are provided by two digital to analog convertors The signal is nominally 22 8 millivolts per degree in the roll axis and 45 5 millivolts per degree in the pitch axis Both axes are calibrated initially on the bench at 0 degrees and 45 degrees Flight tests are performed to verify that the recorded data accurately represents the data provided to the pilot by the standard aircraft instruments Pendulum A standard pendulum is employed to sense aircraft yaw in the same manner as the ball of a rate of turn indicator The instrument used is th
55. e C100USR program to the cable in the Data Logger which is normally connected to COM3 the serial port which is associated with the SIIG I O Professional multifunction input output board This allows the Data Logger to supply the 12 VDC to power the compass engine The compass engines used in the Data Logger are set to communicate at 9600 baud however the default baud rate of a new unit is 4800 baud The parameters should be set as follows Heading Type magnetic PowerUp Mode Not Sending Baud Rate 9600 Message Units d degrees Output Type 0 Output Format 0 Damping Type 3 Damping Rate 0 The Data Logger sends a type d1 command to the compass engine to read the present heading in degrees and does not expect to see any output from the compass engine except responses from such commands If the PowerUp Mode is inadvertently set to sending the Data Logger will flag an error immediately Calibration should always be performed using the Data Logger built in feature with the entire system mounted and configured in the airframe in which the system will operate Appendix 4 Configuration of the A D System AD12 8 The AD12 8 is configured for 5 volt input bipolar Analog to digital conversions are started using the on board counter timer The unit is configured to interrupt the main processor on end of conversion EOC The base I O address is 310 hexadecimal and the interrupt output is selected as IRO 7 IRO3 5 are used by the
56. e Model CP17 0601 1 produced by Humphrey Inc This is a passive instrument with a range of 45 degrees and a weight of 6 ounces Output is by means of a center tapped potentiometer excited by the 10 volt DC source supplied from the analog to digital convertor system described above The voltage is sensed differentially between the center tap and the wiper yielding an output of zero volts in the vertical position Positive voltage indicates deflection to the right negative voltage deflection to the left The signal is nominally 110 millivolts per degree The pendulum is mounted on the gyroscope carrier described above and is mechanically adjusted to provide a zero volt output when the Data Logger is precisely oriented in the horizontal plane and at rest Flight tests verified the correspondence between the ball of the pilot s turn coordinator instrument and the pendulum sensor Compass System Although the Global Positioning System is capable of providing the course over ground COG the Data Logger is eguipped with a magnetic compass system to provide the true aircraft heading The unit chosen is an electronic flux gate compass system that provides data via a serial RS 232 output KVH Industries Inc manufactures the C100 Compass Engine It is available in two configurations the SE 10 gimbaled coil was chosen for this application The compass engine is mounted in a separate non magnetic enclosure and positioned in the aircraft cabin in order
57. e recording the recording wil continue with no position or altitude data in the first case or with loss of precision in the second The appropriate LED will blink rapidly to signal the loss of either function Pressing START STOP once again terminates recording of data Pressing the EXIT key will attempt to write the recorded data to the floppy disk Regardless is the success or failure of this operation the system will shut down the interfaces to the data systems and inform the operator when it is permissible to shut off the power to the system 11 Errors and Recovery There are many possible fatal and non fatal errors which will be trapped and a message displayed on the handheld terminal There will be no doubt other faults in the hardware and software which may just STOP the system with NO displayed error message If an error message is displayed or if the logging just stops inexplicably pressing the reset button on the Data Logger or turning the power switch OFF and then back ON will re initialize the system In any event if the system was recording a process is in place that allows the operator to restart recording data to the original file If restart is possible the sign on message check for disk compass checks and gyro check will be bypassed The message Restart Possible will be displayed The operator may press RSTRT on the handheld terminal to resume recording if the GPS LED is lit If it desired th
58. ear in the file but may be in any order Any spaces before and after the sign are ignored SystemID shall be a single character DataDirPath shall be an ASCII string containing no spaces and having the back slash replaced by a forward slash contrary to normal MSDOS usage for path specifiers The last forward slash must be present DataDirPath should never be empty nor should it reference the root directory of a disk drive The remaining values may be specified in signed integer format or signed floating format with a decimal point These parameter those assigned numerical values are used to adjust the translation of the outputs of the gyroscope pendulum and altitude pressure sensor for minor variations of the transducers Typical logger ini file SystemID A PitchOffset 0 0 PitchGain 44 3 RollOffset 0 0 RollGain 22 1 AltOffset 1 3 AltGain 0 32175 BallOffset 0 BallGain 1 783 DataDirPath c gpstest data 16 General Maintenance and Calibration Periodic Maintenance Generally the Data Logger systems reguire little maintenance on a regularly scheduled basis The only item would be the air filter which should be checked and cleaned as reguired every six months The only limited life components are the backup batteries for the CMOS memory and real time clock of the single board computer and for the GPS receiver The batteries should last approximately five years
59. ed the receiver may not be receiving the WAAS satellite This can be verified by the command SPASHS WAS INF B ON See Appendix 5 for an explanation of the output generated by this command The INF message will be output once per second If the characters just before the asterisk are NOT 3F the WAAS corrections are NOT being received Use the command SPASHS WAS INF B OFF stop this message If the INF message indicates proper reception of the WAAS signal use the command SPASHS WAS WCA B ON to view the actual WAAS data being applied to the positional solution See Appendix 5 for an explanation of the output generated by this command This message must contain five or more satellites for which the flag if either G H or U before the position is marked as differentially corrected A D Problems Analog to digital converter problems may be of several levels of severity Each of these will require a somewhat different approach in troubleshooting The A D system itself consists of two discrete circuit boards the main A D converter AD12 8 which is located in the computer card cage and the multiplexer board AT16 P mounted on the side of the Data Logger enclosure Each of the multiplexer channels used Is wired to one of the internal sensors or to the external radio navigation outputs of the aircraft The radio navigation signals pass through a set of relays used for emergency isolation of the Data Logger and es
60. eled Port A This program will communicate with and test any number of Ashtech GPS receiver systems A users guide is available for Evaluate 4 0 or above If no fatal errors are displayed but the GPS Led never lights to indicate GPS data 1s available then the problem is either in the G12 receiver itself or the GPS antenna system The LED on the receiver itself can be helpful in this case If green flashes are never observed the most likely cause is either the antenna or the antenna cabling The most straightforward method of determining the component s at fault is to interchange to Ashtech G12 receiver with the receiver in another Data Logger much easier than interchanging antenna systems If excessive time appears to be required for the GPS system to lock onto the required number of satellites the problem may be that the keep alive battery that retains receiver data may be exhausted This battery If the C 100 Compass System is replaced see Appendix 3 for information on software configuration If the SIIG input output board is replaced see Appendix 2 for information on the hardware configuration 19 allows the system to retain it s last position the satellite almanac and satellite ephemeris data The battery is located within the silver colored connector near the GPS receiver mounting position If the battery is functional the GPS LED on the handheld display should illuminate within one minute after the STARTING message is di
61. er f amp value 1 return value return 10000 void GetChar char buffer int x char marker char tempbuffer 80 39 if marker strstr buffer 2 NULL strcpy tempbuffer marker 1 if sscanf tempbuffer 96c x 1 return x 0x00 return int GetString char buffer char path char marker char tempbuffer 80 if marker strstr buffer 2 2 NULL i strcpy tempbuffer marker 1 if sscanf tempbuffer 96s path return 1 path O 0x00 return O GPSTEST C include include include include include include include include include include include include include include include include lt stdio h gt lt dos h gt lt time h gt lt ctype h gt lt bios h gt lt alloc h gt lt stdlib h gt lt conio h gt lt math h gt lt string h gt lt dir h gt lt io h gt a12drvc h ibmkeys h asciidef h gsci h time t WriteTime int PacingFlag O int WriteTimeFlag O include logger h the lines below Logger Header FILE restart FILE logfilepointer char LogFileName 80 int GPSFlag O GPS Data Available RecFlag O Recording Data CalFlag O Calibrating Compass GyroFlag O Gyro Erect ReStartFlag O Restart Recording to old file DCIFlag O Differential Corrections good InitFlag O Init in progress
62. erpendicular the plane of the aircraft s wings and not perpendicular to the surface of the earth Positioning System GPS Receiver System The Ashtech Model G12 Global Positioning System GPS receiver is installed in the Data Logger This receiver is capable of tracking up to twelve satellites simultaneously using both code and carrier phase data The G12 has been provided with a beta version of software to allow reception and use of EROS WAAS Wide Area Augmentation System differential corrections The G12 used is the OEM version Part Number 990190 G The receiver is connected to a keep alive battery to maintain the GPS constellation almanac data between operating sessions An active GPS L1 band aircraft type antenna is mounted on the fuselage of the aircraft above the front seating area to provide the most unobstructed view of the sky possible Communication with the GPS receiver is by way of two RS 232 serial ports Ports A and B Port A is used for GPS receiver control and data output Port B is unused but may be employed for diagnostic purposes The Ashtech G 12 receiver remains configured in the factory default mode The Data Logger software accomplishes all initialization of the receiver The Data Logger software is configured so that flight logging can not begin until and unless the GPS receiver is providing three dimensional position data If three dimensional position and or WAAS corrections are lost after data logging has
63. ers It assigns point sl addresses scaleing and gains to all channels xf EJ FREER EERE EERE EERE EEE EERE EER EEE REE ER unsigned ADSetup unsigned l status ADParameters 0 manual setup ADParameters 1 Ox310 address of AD12 8 ADParameters 2 7 IRO 7 ADParameters 3 5 five volt range ADParameters 4 1 bipolar mode ADTask O Initialize Board status call driver if status O FatalError A001 return on error ADTask 11 clear task list ADParameters O 2 status call driver if status O FatalError A001 return on error ADTask 5 assign point addresses 29 ADParameters 0 O ADParameters 1 3 status call driver if status O FatalError A001 ADParameters 0 4 ADParameters 1 6 status call driver if status O FatalError AOO1 ll ADParameters 0 8 ADParameters 1 10 status call driver if status O FatalError A001 ll ADParameters 0 12 ADParameters 1 13 status call driver if status O FatalError A001 ADTask 14 ADParameters 0 1 ADParameters 1 3 ADParameters 2 2 status call driver if status O FatalError A001 ADParameters 0 2 ADParameters 2 1760 status call_driver if status 2 O FatalError A001 ll ll ADTask 10 ADParameters 0 3 ADParam
64. eters 1 O ADParameters 2 10000 ADParameters 3 10000 status call driver if status O FatalError A001 ADParameters 0 ADParameters 1 ADParameters 2 ADParameters 3 2 status call driver if status O FatalError A001 4 0 1 ll T ADParameters O 3 ADParameters 1 3 ADParameters 2 5000 ADParameters 3 5000 status call driver if status O FatalError A001 ADParameters O 3 ADParameters 1 4 ADParameters 2 1000 ADParameters 3 1000 status call driver if status O FatalError A001 ADParameters O ADParameters 1 ADParameters 2 ADParameters 3 status call driver T T ll gaan 3 kd channels 0 1 2 and 3 return on error channels 4 5 and 6 return on error channals 8 9 and 10 return on error channels 12 and 13 return on error set up timers counter 1 mode 3 period 4 47 usec return on error counter 2 1760period 8 millisec return on error set scale for point O return on error same for points 1 and 2 return on error set scale for point 3 return on error set acale for point 4 return on error same for points 4 thru 11 30 if status O FatalError A001 return on error ADTask 4
65. eturn temp1 void II2UTM long double latrad long double longrad long double north long double east int IZONE static int status O long double cen meridian delta meridian sinlat coslat tanlat ETA void initialize void long double rad cur long double x long double y long double z long double true mer dis long double a long double b long double c long double d long double e long double f long double t1 t2 t3 t4 tb t6 t7 t8 t9 SN TMD long double delta 2 delta 4 delta 6 coslat 3 coslat 5 coslat 7 ETA 2 ETA 3 ETA 4 long double tanlat 2 tanlat 4 tanlat 6 long double dg2rads long double latrad dg2rads latrad longrad dg2rads longrad if Istatus initialize status 1 IZONE 31 floorl longrad d rad 6 OL if IZONE gt 60 IZONE 60 If IZONE lt 1 IZONE 1 cen meridian long double IZONE 6 183 d rad delta meridian longrad cen meridian 73 delta 2 delta meridian delta meridian delta 4 delta 2 delta 2 delta 6 delta 2 delta 4 sinlat sinl latrad coslat cosl latrad tanlat tanl latrad coslat 3 coslat coslat coslat coslat 5 coslat 3 coslat coslat coslat 7 coslat 3 coslat 3 coslat tanlat 2 tanlat tanlat tanlat 4 tanlat 2 tanlat 2 tanlat 6 tanlat 2 tanlat 4 ETA eccenbsgr coslat coslat ETA 2 ETA ETA ETA 3 ETA 2 ETA ETA 4 ETA 2 ETA 2 SN rad cur major eccensar sinlat rad SN
66. fer int malloc 100 size NULL return 0 do N N count fread buffer size 100 in if Icount break status fwrite buffer size count out if status count error 1 while error fclose in fclose out 54 if error unlink dest return O return 1 ep EA ESSELEN ANNEN TIN KKKA KITAAN EO AL AA GEK KA soap dre ae Ene TK ege ReadCompass calls GetMagHeading and places the result in the present record si kag FREER EERE EERE EEE R EEE EEE EERE EEE REE ER ERE EEE RE EER EKER EEE EERE EERE EER EEE EEE RH HER HHH void ReadCompass void float head head GetMagHeading Record MagHeading int head return ETE E EEE EEE EEE void GetGPSParameters void OTClear OTWLine GPS Parameters 1 OTWLine High Dynamics 3 OTWLine Press Y or N 4 GPS H D Flag ReadResponsel QTWLine Partial Mode 3 GPS Partial Flag ReadResponse OTWLine Precision Mode 3 GPS Precision Flag ReadResponsel OTClear int ReadResponse void char buffer 10 int test O int value do delay 100 if IsRXEmpty QT ReadStringTimed QT buffer 10 0x00 1 if buffer O B buffer 0 G OTBackLite if buffer O C buffer O H QTContrast if buffer O Y buffer O V test 1 value 1 if buffer O N buffer O S test 1 value O
67. g 1 return 0 timer driven interrupt data acquisition T 12 N ll return on error 31 if ADDataReadyFlag ADCount ADTask 9 get data from buffer ADParameters 0 3 ADParameters 1 offdatbuf ADParameters 2 offpntbuf ADParameters 3 12 status call driver if status O FatalError A004 return on error N for 0 lt ADParameters 3 1 channel ADPointBufferll amp Oxff00 256 data ADDataBufferll 0 001 gain ADPointBufferll amp OxOOff switch l case O tempx data PitchOffset pitch tempx PitchGain Record Pitch pitch int tempx break case 1 roll tempx data RollOffset tempx RollGain Record Roll roll int tempx break case 2 airspeed tempx data AltOffset AltGain tempx 142 91 sgrt fabs tempx Record Airspeed int tempx break case 3 ball tempx data BallOffset BallGain Record Ball tempx break case 4 CDI2 L R case 7 CDI1 L R case 10 GS Dev tempx 2000 data 3 if tempx lt 120 0 tempx 120 0 if tempx gt 120 0 tempx 120 0 if l 24 Record CDI2 int tempx else if I2 7 Record CDI1 int tempx else Record GSDev int tempx note sign change break case 5 CDI2 T F case 8 CDN T F tempx O if data gt 0 042 tempx 1 FROM
68. gger system as a MSDOS computer a standard PC keyboard and a VGA capable display must be connected The keyboard connector is located on the side of the card cage the 15 pin VGA display connector is located on the connector panel of the Single Board Computer the only full length card in the card cage Power the Data Logger system and allow it to start normally If there were no fatal errors during start up the enter key on the handheld terminal will have to be pressed to acknowledge the compass heading check then the EXIT key should be pressed The standard shutdown message should appear on the handheld terminal and the VGA display should provide a standard MSDOS command line prompt In the event that the Data Logger system fails to even boot the MSDOS operating system a keyboard and display must be attached and a bootable 3 16 floppy disk must be available and inserted in the drive When the system is powered press the Del key on the keyboard when prompted to enter the CMOS setup screens Once in setup configure the boot options to allow booting from the floppy disk first then the fixed disk Save the CMOS setting and allow the system to re boot The single board computer should boot the MSDOS operating system from the floppy disk and allow testing to be performed Diagnostics should then be performed to determine the cause of the failure to boot from the fixed disk and this condition remedied 17 Before returning the system to
69. house the SB486PV an additional serial port interface and an analog to digital converter There are at least two additional ISA slots available for additional hardware if required for additions to the present configuration The disk operating system is MSDOS 6 22 and is completely standard The system is capable of operating as a normal personal computer with no modification except for changes to the autoexec bat file which is designed to start the data logger software automatically following the load of the MSDOS operating system when the system is powered There are a number of settings in the BIOS of the SB486PV single board computer that have been modified from the standard configuration to facilitate the operation of the Data Logger These are documented in Appendix 1 Digital Storage Devices The system is eguipped with a 3 Gigabyte IDE fixed disk that contains the MSDOS operating system the data logger software and provides primary storage for the recorded flight data files A 3 floppy disk drive is also provided to permit a convenient method of updating the software and to off load the Data Logger data files at the end of each logging session The Data Logger will not attempt to load an operating system from the floppy drive and depends completely on the fixed disk for operation Serial Data Ports Two serial data ports RS 232 are the standard hardware provided on the SB486PV single board computer These are configured in the ind
70. ile and reads the bay t gains and offsets for critical analog channels the system J ID and the path in which to store the data files J f FREER EERE EERE EEE REE REE RR ER RR EER RR EN ER RR EER void ReadSysParameters FILE in char buffer 80 char marker float temp 8 char path 50 int ch char c int count O index char keys 10 25 PitchOffset PitchGain RollOffset RollGain AltOffset AltGain BallOffset BallGain SystemiD DataDirPath if in fopen logger ini rt NULL FatalError S001 for if fgets buffer 80 in NULL break for index O index lt 10 index 38 if strstr buffer keys index NULL switch index case 8 GetChar buffer amp ch c ch if isalpha c count goto next case 9 if GetString buffer path goto next default if templindex GetFloat buffer lt 9999 count goto next next fclose in if count 9 SystemID c PitchOffset temp O PitchGain temp 1 RollOffset temp 2 RollGain temp 3 AltOffset temp 4 AltGain templ5l BallOffset temp 6 BallGain temp 7 if strlen path O strcpy DataDirPath path else FatalError S002 float GetFloat char buffer char marker char tempbuffer 80 float value if marker strstr buffer 2 NULL strcpy tempbuffer marker 1 if sscanf tempbuff
71. iled Record Mode amp Oxfffe if DCIFlag 5 O DCIFlag GPSBufferFlag index O return if sprintf satascii 02d satcount EOF convert to ascii failed Record Mode amp Oxfffe if DCIFlag 5 O DCIFIag GPSBufferFlaglindex O return startread strstr GPSBuffer index satascii find start of data build format string strcpy readformat satascii for i 2O i satcount i strcat readformat part error sscanf startread readformat amp SVx 0 SVstatus 0 amp SVx 1 SVstatus 1 amp SVx 2 SVstatus 2 amp SVx 3 SVstatus 3 4SVx 4 SVstatus 4 amp SVx 5 SVstatus 5 7 SVstatus 7 amp SVx 8 SVstatus 8 10 SVstatus 10 amp SVx 1 1 SVstatus 11 amp SVx 6 SVstatus 6 amp SVx amp SVx 9 SVstatus 9 amp SVx if error 2 2 satcount Record Mode amp Oxfffe if DCIFlag 5 0 DCIFlag GPSBufferFlag index O return for i 0 i lt satcount i if SVx i gt 32 GEOSATFIag 1 if strchr OKCodes int SVstatusl i 0 NULL Corrected if GPSFlag 0 DCIFIag O 48 else printf SV122 found 96d Count d n GEOSATFlag Corrected if GEOSATFlag amp amp Corrected gt 4 DCIFlag 10 Record Mode 0x0001 SetlON 0 else Record Mode amp Oxfffe if DCIFlag gt O DCIFlag if IDCIFlag SetlON 1 GPSBufferFlag index O return if strstr GPSBufferl
72. index PASHR WAS INF NULL is an INF message if sscanf GPSBufferlindex infformat amp WAASFlag printf s n GPSBuffer index if WAASFlag Ox3f SetWAAScor 1 passcount 5 else if passcount SetWAAScor 0 SetlON 1 GPSBufferFlag index O return if strstr GPSBuffer index PASHR POS NULL is a POS message WriteRecordFlag 1 time to write a record if sscanf GPSBuffer index posformat amp PFlag amp temptime amp PLat amp ns amp PLon amp ew amp PAIt amp COG amp SOG amp Rate 10 POSTime temptime printf scanned POS message at ld n POSTime if ns S PLat 1 0 if ew W PLon 1 0 if POSTime lt Record Time WriteRecordFlag O else Record Time POSTime Record Latitude PLat Record Longitude PLon Record Altitude 3 2808 PAlt Geoidal Record RateOfClimb 0 25 Record RateOfClimb 147 636 Rate m s to ft min three second time constant added to rate of climb Record COG COG Record SOG SOG if SetTimeFlag SysTime Record Time set system time to GPS 49 Removed for WAAS if PFlag 1 Record Mode 0x0001 DCIFlag 10 else Record Mode amp Oxfffe if DCIFlag gt O amp amp LastTimeD POSTime DCIFlag LastTimeD POSTime if POSTime gt LastTimeD 2 Record Mode amp Oxfffe if DCIFlag 5 O DCIFlag if
73. lOffset RollGain AltOffset AltGain BallOffset BallGain extern intGyroFlag extern struct record unsigned long Time int Mark int Mode double Latitude double Longitude int Altitude int RateOfClimb int Airspeed int MagHeading int Pitch int Roll float Ball int CDI1 int CDIT F1 int CDIFlag1 int CDI2 int CDIT F2 int CDIFlag2 int GSDev int GSFlag int COG int SOG extern struct record Record 28 extern int ADCount extern unsigned LoopCounter extern int ADInProgressFlag extern int ADDataReadyFlag void FatalError char unsigned call driver void unsigned ADSetup void unsigned ADProcedures void unsigned ADCheckRdy void void OTLed int int extern unsigned ADPointBuffer extern int ADStatus ADTask ADParameters ADDataBuffer ADTempBuffer FREER EERE EER RE RR EERE EERE EERE EERE ER EKER EER EERE EKER EEE ER RR ER EEE EERE KEE RHEE i call driver is the primitive call to a12drv obj supplied by ICS J FREER EERE EERE EERE EERE EERE REE E EEE EERE R EER EEE REE REE EERE EERE EEE EEE KEE RH HER HHH unsigned call_driver a12drv FP OFF amp ADTask FP OFF ADParameters FP OFF amp ADStatus if ADStatus O printf An A D error code of i was detected n ADStatus printf Program terminated return ADStatus BEL AE AE MK KRALE AA SIG SE KA DAE cotone EA J JE ADSetup sets the AD system paramet
74. led IPC DATA LOGGER A Flight Data Recorder Operation Manual has been prompted by two developments First and most important the source of the GPS differential corrections used in the original Data Logger has been lost with the departure of Differential Corrections Inc It has been necessary to establish a substitute source for differential correction data Second since the DOD has discontinued selective availability autonomous GPS position accuracy is marginally sufficient for the design purposes allowing the original restriction of not allowing data logging unless differential corrections were available to be relaxed This document includes the changes made to the software hardware and operational modes of the IPC Data Logger The present system now uses the Wide Area Augmentation System WAAS for differential corrections The page intentional left blank Table of Contents 1 INTRODUCTION sesse soes naene NG Ge od Ge onnaa pe de N dee oe VN Hn Kauan Se GN ee NENG 1 2 COMPONENTES ORE N UNAG EE EE EE ETE 1 SINGLE BOARD 2 DIGITAL STORAGE DEVICES is is EE NN RAA NAMN STA Gee NID NBA TANGINA ULANG ES 3 SERIAL DATA PORTSARIT a heie ee vei AM Sn Ses due eg 3 ANALOG TO DIGITAL CONVERTER KIAN NST ANNI e E E CRT OE 4 MVERTICAT Gry ROSCOPE vases sn TA Ph LTT EEE INERT 4 PENDULUM PLE 5 COMPASS SYSTEM dr ATA AA A RAVI JA MATTA Gee oe IB NA Kash BAKE Wh seven 5 POSITIONING SYSTEM 55 gee ee ER ere nerd ASS SA ITS See
75. lude lt string h gt include lt dir h gt include lt io h gt struct record unsigned long Time int Mark int Mode double Latitude double Longitude 69 int Altitude int RateOfClimb int Airspeed int MagHeading int Pitch int Roll float Ball int CDI1 int CDIT F1 int CDIFlag1 int CDI2 int CDIT F2 int CDIFlag2 int GSDev int GSFlag int COG int SOG IE struct record Record void convert struct record rec char str sprintf str Y ld t d t 96d Vt 96 1 5 5IfVt96 15 5If t Yd t 96d Xt 96 dt 96 d Xt 96d Vt 96d Nt 965 2 6 011 d Vt d Yt Yo 016 dt 96d Vt 96d t d t d t d n rec Time rec Mark rec Mode rec Latitude rec Longitude rec Altitude rec RateOfClimb rec Airspeed rec MagHeading rec Pitch rec Roll rec Ball rec CDI1 rec CDIT_F1 rec CDIFlag1 rec CDI2 rec CDIT F2 rec CDIFlag2 rec GSDev rec GSFlag rec COG rec SOG int main void char InputFile 80 OutputFile 801 temp 10 int Res FILE in FILE out char StrBuffer 500 struct record Buffer int size i count factor j printf Data Logger Conversion Utility n n printf Enter name of File to Convert gets InputFile printf n nEnter name of File for result 70 gets OutputFile printf n nPreprocessing n td decimate n tm marked only n printf tn none n nEnter d m orn do Res toupper char getch while Res
76. m and ion U all corrections This message is output once per second until turned off by command Appendix 6 Initial Settings for Display Control Console The QTERM II is configured via software provided by the manufacturer The program QSETUP EXE is used to program the terminal using a QDATA File The QDATA File is an ASCII file provided by the manufacturer in several versions for the various models of the QTERM II terminal The particular file appropriate to this unitis QDATA40W V30 Several changes were made to this default file in order to utilize the display more conveniently and to simplify the task of communicating with the terminal Specifically the lines identified below were modified e auto wrap mode off e auto scroll mode off e auto line feed mode off e key repeat mode off e lt k00 gt S lt k01 gt 4 lt k02 gt 3 e lt k03 gt 2 lt k04 gt 1 lt k05 gt e lt sk00 gt 5 lt sk01 gt 4 lt sk02 gt 3 e lt sk03 gt 2 lt sk04 gt 1 lt sk05 gt The result of loading this modified configuration is twofold 1 All twenty character positions on each of the four lines of the display can be written to without changing the display on any other line in the process and 2 The data sent when a function key is pressed START STOP EXIT etc starts with the tilde character which is not sent by any other key on the keypad Detailed instructions
77. ng temp1 QTWLine string 2 if logfilepointer fopen LogFileName a b NULL FatalError W001 if fwrite RecordBuffer sizeof Record RecordIndex logfilepointer Recordlndex FatalError W002 if fclose logfilepointer O FatalError W003 Recordindex O FlushRecordBufferFlag O FREER EERE EERE EERE EERE EEE REE R EERE EE ER EERE EER EEE EKER EKER EERE EER EERE EERE EER EEE REE EEE ER RRR E RH I J WriteToBuffer averages summed fields in the data record and writes the resulting record into the buffer FREER EERE EERE EEE GIC EROR Aa RRR E Ei void WriteToBuffer static unsigned int count O char s 10 float tempy if WriteRecordFlag printf Count d n ADCount printf Loops u n LoopCounter LoopCounter 0 if ADCount Record Airspeed ADCount Record Pitch ADCount Record Roll ADCount Record Ball ADCount Record CDI1 ADCount Record CDI2 ADCount Record GSDev ADCount ADCount 0 if Record Ball lt 0 tempy 1 else tempy 1 Record Ball floor fabs Record Ball 4 0 0 5 Record Ball tempy Record Ball 4 0 Record Mode Oxc8 if RecFlag ReadCompass RecordBuffer RecordIndex Record sprintf s 9u count UpdateCount s FREER EERE EERE EERE KEE EERE EEE REE EERE EERE EKER 51 The following switch display
78. not at present an official FAA document Consequently the views expressed herein do not necessarily represent official FAA positions The contacts of the selected relay should be a minimum of gold flashed since the signals passing through are small and any excess contract resistance may effect the accuracy of the radio navigation data 22 References Benton C J Corriveau P amp Koonce J M 1993 Concept Development and Design of a Semi Automated Flight Evaluation System SAFES AL HR TR 1193 0134 DOD 1992 Mapping Datum Transformation Software NTIS PB93 500296 Taylor H L Bradshaw G L Talleur D A Emanuel T W Hulin C L Lendrum L amp Vaughn J A 1999 Effectiveness of Personal Computers to Meet Recency of Experience Requirements Proceedings of the Tenth International Symposium of Aviation Psychology Columbus OH The Ohio State University Lendrum L Taylor H L Talleur D A Hulin C L Bradshaw G L amp Emanuel T W 1999 Airborne Flight Data Recorder Proceedings of the Tenth International Symposium of Aviation Psychology Columbus OH The Ohio State University Hardware and Software Reference Manuals Evaluate 4 0 Users Guide 1997 Sunnyvale CA Ashtech G12 MGPS Board and Sensor Reference Manual 2000 Santa Clara CA Magellan Corporation Greenleaf CommLib Reference Manual 1997 Dallas TX Greenleaf Software Inc I O Professional User s Manual 1997 Fremont CA
79. ocedures CompassCommand cal NULL does not return new heading if ReadStringTimed KVH response 40 0x0d 10000L lt 0 CalAbort Cal Time Out return ERROR O if ReadStringTimed KVH response 40 0x0d 2000L lt O ERROR if strstr response test NULL ERROR if ERROR CalAbort Cal Failed return OTClear QTWLine Compass Cal ed 1 if ReadString KVH response 40 0xOd QTWLine response 2 QTBeep delay 3000 InitFlag 1 QTClear CalFlag O ClearRXBuffer GPS 36 fJEHKKKA KKK KK KK K K K K K K K V K K N KK K K R K KN K 8 Send Command to Compass and return the response Makes five attempts to send command M J Fatal Error is Compass Fails to respond j ki FREER E REE EEE RE ER RR EER RR ER ERE EERE void CompassCommand char command char response1 int loop O int ERROR 0 char temp 21 if NSRXEmpty KVH ClearRXBuffer KVH assure clear buffer do WriteString KVH command OxOd send the command if command 0 2 delay 60 delay else delay 200 if ReadChar KVH gt break check for command accepted ClearRXBuffer KVH command ignored clear buffer if loop gt 5 ERROR 1 increment error count retry while loop lt 5 if ERROR FatalError CO01
80. ock is synchronized to UTC Zulu time LED s on the terminal are illuminated to indicate e GPS position fixes are available GPS e Position data are differentially corrected DIFF e System vertical gyro has erected GYRO Once these three conditions are true LED s lit the message READY will be displayed and pressing the START STOP key begins recording data In the present version differential corrections are not required to start logging data The REC LED will light indicating recording is in progress The top line of the display will indicate the number of records that have been recorded this number will continue to increment as long as the unit is recording flight data After ten seconds the automatically generated filename will be displayed The filename format is SystemID day hours minutes year month e g A072115 985 is the filename of the flight data taken with System A beginning at 2115Z on May 7 1998 Once recording the operator may press TGGLE to flag certain critical segments of flight data records The MARK LED will light and all subsequent records will be marked until TGGLE is pressed once again A mark is an integer recorded in the record beginning at one 1 and incremented upon each use of the marking function The bottom line of the display indicates the present state of the marking function and the present or last marking number used If the GPS signal or differential corrections are lost whil
81. on circuitry from that of the Data Logger when the Data Logger is turned off or loses primary power Airspeed Sensor The Data Logger measures airspeed in the same manner as an aircraft airspeed indicator which senses the differential pressure between the pitot port and the static port However the processing and conversion of differential pressure to altitude is accomplished electronically in the Data Logger The differential pressure sensor is a Model 140PC01D produced by the Micro Switch Division of Honeywell It reguires an excitation voltage the same 10 volt DC source used for the gyroscope and pendulum and produces an output voltage proportional to the pressure difference between units two ports From standard FAA calibration specifications it was determined that following formula defines the relationship between the differential pressure expressed in inches of mercury and the airspeed expressed in Knots Airspeed 142 9 ly differential pressure This relation is employed in the Data Logger and flight testing indicates the recorded airspeed is within 1 or 2 Knots of that of the aircraft s airspeed indicator within the speed range of interest approximately 65 to 110 Knots User Display Control Console The User Display Control Console is a handheld ASCII terminal that has two primary functions e Allow the operator to start stop the logging of flight data and optionally mark data records e Display the state of the Data
82. orland product Software drivers for the analog to digital converter system were provided by the manufacturer Industrial Computer Source The objectives and constrains on the software design are outlined in the following list Simple and easy to use placing as little additional workload on the operator as possible Self diagnostics of sub systems on start up As immune from operator error as practical Capable of recovery from in process errors The program requires a file called logger ini to function This file contains the system identification A or B as presently only two systems have been constructed the path or directory into which the logger data files are to be placed and calibration data for the analog channels which are hardware dependent pitch roll ball and airspeed This allows re calibration of the system without the need to re compile the basic program Most of the inputs are channeled through hardware interrupt serviced input output ports to insure that data from the external devices is received without loss of information A system of flags and semaphores are used to indicate when data is available for each module to process thus allowing the software to bypass modules which need not be run at that particular instant After the initialization of the sub systems the program enters the main program loop each function within the loop performs a specific relatively short task on the data available to be processed and then
83. osition data is desired in latitude longitude convert exe or in Universal Transverse Mercator utm con exe format The data file is copied to the directory of the computer that contains the conversion program executable file The program either convert exe or con utm exe is run and the user must enter the name of the data file to be converted Each program allows the user to select subsets of the records to be converted The user may 1 convert all records 2 convert only marked records or 3 convert only a decimated number of records with the choice of the decimation factor Once this selection is made the program writes the converted file in the same directory with only the extension of the file name changed For example if the file name to be converted was A111407 98B the resulting ASCII file will have the name A111407 txt As a practical matter if the conversion is being run on a Windows 9x or NT computer the file is manually renamed including the original extension plus the txt extension A111407 98B txt This is a legal file name construct in these operating systems The Mode of the Data Logger which employs WAAS correction has the decimal number 200 added to the mode value to differentiate the data from the original which used DCI RTCM corrections 15 These converted data files can then be processed by any of a number of software packages depending on the desired analysis to be performed In the par
84. ound earth stations and geostationary communication satellites The WAAS signal is the same freguency as the GPS LI signal and thus can be received and processed by a modified GPS receiver Corrections and integrity bounds are calculated by the ground stations uplinked to the geostationary satellites and transmitted to GPS WAAS users Although the WAAS is not yet commissioned and cannot be used for safety of life applications it is perfectly suitable for this application Radio Navigation Instruments The Data Logger records the radio navigation indications from two VOR LOC displays and one Glideslope display The left right up down deflection of the course deviation indicators CDI s is recorded in addition to the state of the system flags and TO FROM indicators in the case of VOR operations This reguires a total of eight analog to digital channels This data are derived from the outputs of the panel mounted display units normally used to connect to an autopilot The Bendix King units installed in the Beech Sundowners used in this application provide industry standard CDI signal voltages 150 millivolts for a full scale deflection however the flags and TO FROM signals are not exactly standardized and the Data Logger software is designed to accommodate the voltages specific to these instruments As a safety precaution all connections to the aircraft navigation displays are routed through relays which totally isolate the aircraft navigati
85. p BannerFlag 1 if BannerFlag 2 amp amp RecFlag amp amp GPSFlag DCIFlag GyroFlag 65 OTWLine STANDBY 2 BannerFlag 2 FREER EEE EERE RE RR RE RR RR RR ER RR EER RR EN ER RE EER EKER EKER ER RE ER RR EER N RR N EERE EER EEE REE ERE ER BREER RR pt JE LEDUpdate controls the state of the LED s depending on the state of the machine and the state of internal flags xf FREER EERE EERE ERE REE EE EERE EERE EER EEE EERE EKER EEE REE EERE EEE REE ER EERE EERE EER EKER EH ERE ER eee void LEDUpdate static int LastRec LastGPS LastDCl int i i RecFlag 2 0 if RecFlag LastRec GPSFlag LastGPS iflGPSFlag OTLed 4 1 else OTLed 4 i if i 2 0786600 if RecFlag LastRec DCIFlag LastDCl if DCIFlag OTLed 3 1 else QTLed 3 i if i 2 OTBeep LastRec RecFlag LastGPS GPSFlag LastDCI DCIFlag if GyroFlag QTLed 2 1 if PacingFlag DisplayReady void PitchRoll int pitch int roll char str1 5 char str2 5 char position1 5 ESC I B O char position2 5 ESC I B K sprintf str1 963i pitch sprintf str2 963i roll WriteBuffer QT position1 4 WriteString QT str1 1 WriteBuffer OT position2 4 WriteString OT str2 1 void ASPend int AS float ball char str1 5 char str2 7 char position1 5 ESC I B O char position2 5 ESC I B K
86. r line1 22 if dos getdiskfree 1 amp free O OTClear OTWLine Insert a Formatted 1 OTWLine Disk into Drive A 2 OTWLine Press ENTER to Cont 4 QTBeep ReadCharTimed QT 15000L OTClear if dos getdiskfree 1 amp free 0 avail long free avail clusters long free bytes per sector long free sectors per cluster size sizeof Record time float avail float size time 3600 0 sprintf line1 space for 4 2f hours time OTClear OTWLine This Diskette has 1 QTWLine line1 2 QTWLine of Flight Data 3 OTBeepl delay 3000 OTClear FloppyFlag 1 FREER EERE EERE EERE EEE EERE EERE EE REE ER EERE EER EEE EKER EEE EERE EEE EERE EERE EER EEE REE EEE ER RR EEK HY f CopyToFloppy copies all data files in the datasave directory to 4 jt the floppy It copies only file with are not archived i f After a successful copy to floppy the source file is mark as i as archived so it will not be copied again The source file is retained not erased ka CopyToFloppy calls FileCopy to perforn the disk to disk copy HE S FREER EERE EERE ERE R EEE EERE EER EEE REE R EERE EER EERE EKER EERE EER EERE EERE REE ER EH ERE ER TERRE ER HY void CopyToFloppy void char fname char dest a char destfile 20 char search 80 char sourcefile 80 struct ffblk block struct diskfree t free
87. rcraft 12 volt power buss The aircraft power buss and wiring is protected by a 10 amp circuit breaker in the primary power circuit of the Data Logger One switching DC to DC converters are required in 12 volt aircraft A DC to DC converter is employed which converts the aircraft DC power to the voltages required to operate the single board computer and other components that require compatible regulated voltages the Display Terminal and the Compass System The input of the primary converter for the Beech Sundowner is 12 volts DC the outputs are e 5 volts DC regulated e 5 volts DC regulated e 12 volts DC regulated e 12 volts DC regulated The DC to DC converter used is the Model PD110 40L by International Power Sources Inc This unit requires an input of 10 to 20 volts DC and provides the four regulated output voltages listed above The unit is capable of providing 5 volts DC 10 amps 12 volts DC 9 amps 12 volts DC and 5 volts DC both 1 amp total power output not to exceed 110 watts The 5 volt output is over voltage protected and all outputs are over current protected 3 Software System Operating Software The software for the Data Logger was developed using Borland C Version 3 1 however the code is all standard C with no C extensions An asynchronous communication library Greenleaf CommLib Level 2 was used to provide a more robust serial communication environment than is natively available in the B
88. rder to convert the unit to operate in a 24 volt aircraft a number of component and wiring changes are required The time required to convert one Data Logger from 12 volt to 24 volt operation is estimated to be less than two hours Components Required for each Data Logger e Power Converter International Power Sources Inc Model PD110 40M e Relays Potter amp Brumfield Model KHAU17D13 3 pieces e Fan Papst Model 4314 or equivalent 24 VDC Brushless 4 7 inch square mount Procedure 1 Remove the International Power Sources PD110 40L Power Converter and install the model PD110 40M in its place It is the same physical size and is a pin for pin replacement no modifications need be made to the cabling 2 Remove the three or four P amp B relays and replace with the 24 VDC units 3 Remove the 12 VDC fan assembly and replace with the 24 VDC unit Optionally the Data Logger power switch circuit breaker may be replaced with a unit rated a 5 amperes Acknowledgments and Disclaimer The work supporting this Technical Report was supported under Federal Aviation Administration FAA Cooperative Agreement Award Number 2001 G 037 with the Institute of Aviation University of Illinois at Urbana Champaign The FAA technical monitor for this research grant is Dr Dennis B Beringer AAM 510 the FAA Grants Analyst administering this grant is Mrs Colleen Peranteau ACT 50 This report is in the process of review and approval and is
89. s diagnostic informaton lt on the A D system functions Displaying the information on the third line of the terminal 1 displays pitch and roll 2 displays airspeed and ball position 3 displays CDI 1 and its flag 4 dispalys CDI 2 and its flag 5 displays GS Dev and its flag O clears the thrid line display si W ii i Tf wl M A FREER EEE REE EERE EERE REE EERE REE ER ERE EEE EEK ER EKER ERE EEE RE EER EEE REE RHEE RE HEH EER HHH switch DiagnosticFlag case O break case 1 PitchRoll Record Pitch Record Roll break case 2 ASPend Record Airspeed Record Ball break case 3 PitchRoll Record CDI1 Record CDIT F1 break case 4 PitchRoll Record CDI2 Record CDIT F2 break case 5 PitchRoll Record GSDev Record GSFlag break default break time amp WriteTime WriteTimeFlag 1 WriteRecordFlag O Record Airspeed 0 Record Pitch O Record Roll 0 Record Ball 0 Record CDI1 O Record CDI2 O Record GSDev O return JAT AE HERALD EE OES AA AE OK SA RE TRE f t checkdisk checks for the presence of a disk in drive A and provides an estimate of the length of flight data which can kad be copied to this disk mh KU FREER REE EERE EERE EEE EEE REE ER EKER EER EERE EKER EEE REE EER EKER EEE EEE RH HER HHH void checkdisk void struct diskfree t free long avail int size 52 float time cha
90. s power be removed I t and the system started cold fe Ef FREER REE EERE EERE REE REE R ERE EERE EEE EERE EEE EERE EEE EEE REE EEE REE REE RHEE R RR void ADLoop printf d Yodin ADCount LoopCounter If LADCount amp amp LoopCounter gt 200 FatalError A005 33 return COMPASS C include lt stdlib h gt include lt string h gt include lt dos h gt include lt bios h gt include lt conio h gt include lt stdio h gt include ibmkeys h include asciidef h include gsci h extern int CalFlag InitFlag BannerFlag GPSFlag DCIFIag extern PORT KVH compass system on COM3 extern PORT OT terminal on COM2 extern PORT GPS void FatalError char void QTBeep void void OTLed int int void CompassCommand char char void OTClear void void OTWLine char int float GetMagHeading void void OTBackLite void void OTReset void void NonFatalError char void OTContrast void void CalCompass void void OTAudioOn void void OTAudioOff void void DisplayCompass void void GPSDelnit void void GPSInit void CalAbort char s char AbortString cez NonFatalError s WriteString KVH AbortString OxOd CalFlag BannerFlag O GPSInit delay 500 ClearRXBuffer GPS return void DisplayCompass void float head int test O char buffer 10 char msg1 M
91. sential navigation displays Each of the following paragraphs describes a particular class of A D problem 20 Error Codes Displayed If an A D error code is displayed on the handheld terminal type A the problem is localized to the two circuit boards mentioned above or the cable which connects the two boards Verify that the AD12 8 is properly seated in the card cage and that the cable is firmly seated to each mating connector If the problem persists replace the AD12 8 and AT16 P one at a time to determine which has failed The AT16 P can be substituted by merely unplugging the cable from the installed unit and plugging it into the spare there is no need to remove the original unit nor to connect the inputs to the spare AT16 P used for testing purposes If this procedure is used be certain that the replacement AT16 P is placed on an insulating surface before applying power Spare AD12 8 and AT16 P are available already properly configured in addition to a spare cable used to connect these units Operational Checks Using the Terminal If no errors are flagged but it is suspected that there is a problem with one or more of the analog to digital channels the actual converted data from these channels can be displayed on the handheld terminal to aid in maintenance and troubleshooting When the Data Logger is in the recording mode the actual values being stored in the flight data records for pitch roll airspeed ball yaw and radio n
92. service as a Data Logger restore the boot options back to the original configuration i e boot from the fixed disk only This setting is chosen so that a user can insert a floppy disk used to provide a copy of the Logger data file at any time without having the system attempt to boot from the floppy At this point the autoexec bat file can be edited to comment out the lines that automatically start the Data Logger software gpstest exe These should be removed before the system id returned to service Once the computer is booted and operating in MSDOS all normal MSDOS functions should be available and the unit should behave as a standard computer using command at the standard DOS prompt The floppy drive A and fixed disk C should be accessible for both read and write serial ports COMI and CONZ should be available Note that COM3 is non standard and will not be recognized by DOS Also there are no active parallel ports in the system Executing the file gpstest exe from its home directory will run the actual logger software The external compass system and the handheld display terminal must be connected for the system to start Furthermore 1f the GPS antenna is not connected and receiving a signal the Data Logger will not be allowed to enter the logging mode Compass System Problems Accuracy If the Data Logger does not provide an error message related to the compass system type C but the data provided by the system appears to
93. sinlat coslat 3 OK 5 0L tanlat 2 9 0L ETA 4 0L ETA 2 24 0L OL tanlat 2 tanlat 4 270 0L ETA 445 0L ETA 2 324 0L ETA 3 680 0L tanlat 2 ETA 2 88 0L ETA 4 600 0L tanlat 2 ETA 3 192 0L tanlat 2 ETA 4 720 0L TMD true mer dis AP BP CP DP EP lat t1 TMD OK t2 SN sinlat coslat OK 2 0L t3 t4 SN sinlat coslat 5b OK 61 0L 58 330 0L tanlat 2 ETA tb SN sinlat coslat 7 OK 1385 0L tanlat 6 40320 0L 3111 0L tanlat 2 543 0L tanlat 4 if latrad gt O OL north OL else north 1 0e7L north t1 delta 2 t2 delta 4 t3 delta 6 t4 delta 4 delta 4 t5 t6 SN coslat OK t7 SN coslat 3 OK 1 0L tanlat 2 4 ETA 6 0L lat 2 tanlat 4 14 0L ETA 13 0L ETA 2 4 0L ETA 3 64 0L tanlat 2 ETA 2 t8 SN coslat 5 OK 5 0L 18 0L tan b8 0L tanlat 2 ETA 4 24 0L tanlat 2 ETA 3 120 0L t9 tanlat 6 5040 0L SN coslat 7 OK 61 0L 479 0L tanlat 2 179 0L tanlat 4 east FE delta meridian t6 delta 2 delta meridian t7 delta 4 delta meridian t8 delta 6 delta meridian t9 north floorl north 0 5L east floorl east 0 5L void initialize void long double TN2 TN3 TN4 TN5 recflat 1 0L flat bmajor major 1 OL flat eccensgr 1 0L powl bmajor major 2 0 eccenbsgr powl major bmajor 2 0L 1 TN major bmajor major bmajor L OL 74 TN2 TN TN TN3 TN2 TN TN4 TN3 TN TNS TN4 TN
94. splayed Wide Area Augmentation System A problem with the differential correction system will only be evident by the Data Logger never coming out of STANDBY and the DIFF LED never being lit All of the processing of the WAAS signal is done within the Ashtech G12 receiver and the only method one has to determine these internal conditions is to communicate directly with the G12 receiver A second serial port is available to which may be connected to a second computer running a terminal emulator program or the Ashtech Evaluate program This port always operates are 9600 baud no parity and one 1 stop bit Commands may be input using the second computer to determine the internal state of the G12 receiver including the WAAS setting and data The first to be used is SPASHQ PAR which displays the parameters presently in use by the receiver The output of this command is shown on page 77 of G12 GPS Board and Sensor Manual However an additional line appears which 1s not shown which is descriptive of the state of the WAAS process This line begins WAS 122 The remainder of this line should contain in any order the following POS ON COR ON PAR OFF FLT ON ION ON VIT SFT and PRC ON If these are present the system 1s assumed to be operating in differential mode however if sufficient WAAS corrections have not been received and decoded the DIFF LED may not be lit If COR OFF is observ
95. stem is mounted in a separate non magnetic enclosure so as to allow its positioning within the airframe in order to provide the most accurate heading information possible Wiring of the aircraft has been modified to supply 12 volt DC power and to provide the data from the aircraft s VOR LOC s and Glideslope systems to the Data Logger An FAA PMA approved GPS antenna was installed on the fuselage above the front seating area This is the only available horizontal area with an unobstructed view of the sky The pitot and static air systems were modified to provide for connection to the data logger for measurement of airspeed These modifications were field approved by the local Flight Service District Office FSDO A test flight was reguired by the FAA to demonstrate the data logger did not adversely effect the operation of critical aircraft systems FAA Form 337 Major Repair or Alteration was submitted to document these modifications The Data Logger may be adapted to aircraft other than the Beech Sundowner Some component changes and wiring modifications would be reguired to operate the system in an aircraft that is eguipped with a 24 volt DC power system Re calibration of the airspeed may be reguired to accommodate a different pitot static system The interface to the radio navigation systems VOR LOC and GS was designed for the Bendix King KI 2xx system of outputs wiring modifications within the Data Logger may be reguired if other navigation
96. stored on a 3 16 floppy disk When the operator ends a logging session and exits the program the recorded data file is copied to the floppy disk automatically If this operation fails for any reason no disk present disk not formatted or some other reason the file is retained and written to the floppy disk on the next opportunity In any event the data files are always retained on the fixed disk and may be retrieved using standard DOS command line procedures The program consists of multiple modules the source code for which may be found in Appendix 7 Post Flight Data Conversion Software As noted above the flight data files are stored in binary for reasons of minimizing the file writing time and to allow them to be easily transported via floppy disks Although the binary format uses standard IEEE floating point formats it was determined that conversion to a standard text ASCII format would allow the maximum flexibility in viewing and analyzing these data Programs have been written to read the binary data files and convert the records to text format ASCII In the converted ASCII file tab characters separate the fields of each record and records are separated by a carriage return line feed newline character s There are two versions of the conversion program these differ only in the treatment of the horizontal position information The standard horizontal position output of the Global Positioning System Receiver is lati
97. t NULL return O unable to open file if sprintf buffer s s n filename LogFileName EOF ERROR if fputs buffer restart EOF ERROR if sprintf buffer s d mark MarkIndex EOF ERROR if fputs buffer restart EOF ERROR fclose restart if ERROR unlink restart ini return O else return 1 68 Ki A a SYSTIME C include lt stdio h gt include lt dos h gt include lt time h gt extern int SetTimeFlag FREER EERE EERE EERE EEE EERE EER EEE REE ER EKER EER EERE EKER EEE REE EER EKER EEE EEE RH HER HHH Ej This routine sets the system time to UTC time as determined by the GPS system after acquistion di FREER EERE EERE EERE EER EEE EERE EER EEE EERE REE RE EER EKER EEE REE EER HEE REE EEE RH HER HHH int SysTime long int GPSTime struct time t long int a b long int x 10000L a GPSTime 10000L b a x GPSTime GPSTime b b GPSTime 100L GPSTime b 100 t ti min unsigned char b t ti hour unsigned char a t ti sec unsigned char GPSTime t ti hund 0 settime amp t SetTimeFlag O return 0 Basic Post Flight Software LATITUDE LONGITUDE ASCII CONVERSION include lt stdio h gt include lt dos h gt finclude lt ctype h gt include lt bios h gt include lt alloc h gt include lt stdlib h gt include lt conio h gt include lt math h gt inc
98. t data By starting the Data Logger and NOT pressing START but pressing EXIT an operator may copy any previously un copied data files from the system s fixed disk on a floppy Operational Error Codes The following table contains the Error Codes displayed on the handheld terminal when an unrecoverable fatal error occurs during a data logging session In the event that a fatal error 1s encountered the operator should make note of the displayed Error Code to facilitate the remediation of the problem 12 If an Error Code is displayed in the course of a recording session it is recommended that a reset followed by a restart as mentioned in the previous section be attempted Note that in any event pressing the reset button on the Data Logger will require a minute or so before the system appears to respond This delay is caused by the necessity of re loading the operating system followed by the actual program If this fails to resolve the problem the Data Logger should be powered down and the logging session cancelled until the required maintenance can be performed Table 1 Data Logger Error Codes Error Code Description A001 Error initializing the analog to digital converter A002 Error initializing an A D conversion cycle A003 Error starting an A D conversion cycle A004 Error reading data from an A D conversion C001 Magnetic
99. t ini rt NULL return O restart ini not found for if fgets buffer 80 restart NULL if no more lines break if strstr buffer filename 2 NULL if filename line if marker strpbrk buffer 2 NULL strcpy tempbuffer marker 2 length strlen tempbuffer tempbuffer length 1 0x00 if tempfile fopen tempbuffer rb NULL fclose tempfile localfileflag 1 strcpy localfilename tempbuffer 67 goto next else if strstr buffer mark NULL if marker strpbrk buffer 2 NULL if sscanf marker 1 96d amp localmarknumber localmarkflag 1 next fclose restart if localfileflag amp amp localmarkflag ReStartMarklndex localmarknumber if successfull copy local to globals strcpy LogFileName localfilename ReStartFileFlag 1 FREER EERE EERE RE RR RE RR RE RE RR RR EER ER EKER EER EERE return 1 indicate success return o failure T jo This is the routine which creates and updates the restart Jt file The data file name and the last index mark used is ft recorded in this file for possible append operations YE kaaa int WriteRestart void extern FILE restart char filename FileName char mark MarklndexNumber char buffer 80 int ERROR O if ReStartUpdateFlag return 1 ReStartUpdateFlag O if restart fopen restart ini w
100. ticular experiment for which the Data Logger was developed this program is a highly modified Microsoft Excel based application 5 Maintenance and Troubleshooting General System Software Configuration System Start Up The autoexec bat file found in the root directory of the fixed disk is configured to change the default directory to that in which the Data Logger software resides and to execute the Data Logger software gpstest exe In the event that the Data Logger system reguires maintenance these lines of the autoexec bat file may be commented out so that the system comes up in the standard MSDOS command line mode See the section on General Computer Problems for a procedure that may be used The boot seguence which is configured from the CMOS setup of the single board computer is also modified to facilitate the operation of the system as a Data Logger To boot from a floppy disk the CMOS setup must be changed See the section on General Computer Problems for details Logger Parameter File A file named logger ini is used to define the identification of the system certain analog calibration parameters and the directory to which the generated data files will be stored on the fixed disk This file must be present in the same directory as the main Data Logger executable file gpstest exe Fach line begins with the name of parameter defined by that line and must be exactly as appears in the example below All ten parameters must app
101. to minimize magnetic electrical and electronic interference from the aircraft frame and electrical systems The output is in units of degrees with a resolution of 0 1 degrees The compass engine is provided with user selectable output filters and a selectable time constant for this filter The filter selected for this application is a double low pass filter with a time constant of three 3 seconds The C100 Compass Engine has a built in autocompensation system that enables the system to calibrate Itself to maintain accuracy to a fraction of a degree even when surrounded by the airframe that distorts the earth s magnetic field The autocompensation procedure is performed upon initial installation of the Data Logger The Data Logger displays the heading determined by the compass system during the start up procedures The operator is given the opportunity to compare this reading with the aircraft magnetic compass to verify proper operation In the event of a discrepancy the operator or a technician can initiate a new autocompensation procedure directly from the Display Control Console See the Maintenance and Troubleshooting section for details The flux gate compass system is not gyroscopically aided This implies that large errors in the magnetic heading will occur during periods the maneuvers of the aircraft cause the flux gate to deviate from the horizontal plane A coordinated turn is one such maneuver where the perceived gravitational force is p
102. tude and longitude The first version of the conversion program convert exe directly converts this data to the ASCII format The second version con utm exe converts the horizontal position data to Universal Transverse Mercator UTM in place of latitude and longitude UTM uses northing and easting as the coordinates in addition to a UTM zone number 10 The advantage of using UTM coordinates is that UTM is a rectilinear system This simplifies the process of plotting the aircraft s course The northing and easting coordinates are expressed in meters and are converted from the latitude longitude data to a resolution of one meter in this application The source code for both conversion programs may be found in Appendix 7 4 Operation General Operational Procedures The initial display on the handheld display control console is a sign on message indicating the SystemID and software version This is followed by a check for the presence of a floppy disk in drive A and giving the operator the opportunity to insert one If a disk is present an estimate of the flight length in hours that can be stored on this floppy is displayed If there is no disk in the drive the program continues after a short delay The system then displays the magnetic heading to allow the operator to judge if the system compass and aircraft compass agree Pressing ENTER terminates this display As soon as a GPS lock is obtained the system cl
103. ulty may be associated with the aircraft Changes in the location of the compass system or additional pieces of eguipment recently installed near the compass engine location may effect accuracy Changes in the aircraft wiring in the area of the compass may also have the same effect It is also possible that the aircraft s engine or generating system may be producing electrical noise that may interfere with proper operation of this electronic compass engine gt f a new C 100 Compass System is acquired it must be configured using the software provided by the manufacturer See Appendix 3 for details 18 Communications If the Data Logger does display an error message a C001 or C002 fatal error first check the cable between the Data Logger and the compass system If the cable was securely connected disconnect the cable from the compass system end and measure the voltage between pins 5 and 8 of the 9 pin connector With the Data Logger turned on there should be 12 volts DC present pin 8 being positive There are only two items besides the cable and the lack of DC power which can cause a communication failure One is the compass system itself and the other is the SIIG input output board Replace these items with units from another Data Logger one at a time to isolate the problem GPS System Problems The Global Position System receiver Ashtech G12 provides the total positioning information for the Data Logger The Ashtech G12 recei
104. ustry standard manner as COMI I O Ports 3F8 3FF IRO 4 and COM2 I O Ports 2F8 2FF IRO 3 A third serial port is reguired for data logger operations A SIIG I O Professional multifunction input output board Model 101809 provides this capability This board has two additional serial ports and one additional parallel port In this application only one serial port is used and the remaining serial port and the parallel port are disabled The serial port on the SIIG board is configured in a non standard manner since all serial input output in the data logger uses interrupt driven routines and each serial port must have a unigue IRO hardware interrupt reguest channel This port is designated COM3 I O Ports 2E8 2EF IRO 5 The hardware configuration of this board is documented in Appendix 2 COMI communicates with the Global Positioning receiver COM2 with the User Display Control Console and COMG with the KVH Compass System All serial ports initially operate at 9600 baud no parity 8 bit of data with 1 stop bit 9600N81 The GPS port COM is operated at 38 400 baud after the GPS receiver is initialized Analog to Digital Converter An analog to digital converter allows the recording of the following analog variables in digital format Aircraft pitch and roll data from the Vertical Gyroscope Aircraft yaw data from the Pendulum Airspeed data derived from a differential pressure sensor Electronic Navigation data from VOR LOC Glideslope
105. ution of components the vertical gyroscope pendulum assembly or the differential pressure assembly in event of an airspeed problem 21 Errors in Low Level Channels The low level channels are those associated with the radio navigation instruments These signals are not low level in the strictest sense of the term but these channels are measuring differential voltage inputs in the millivolt range 200 mv range If all of these channels are not responding correctly examine the external connector between the Data Logger and the aircraft the larger of the two circular connectors Secondly verify that the isolation relays are operating these relays should be activated when power is applied to the Data Logger system Another possibility is that the zeroing of the multiplexer and or analog converter may have drifted to an extent which effects these millivolt range measurements without effecting the apparent accuracy of the high level channels This occurrence would be rare but if suspected the procedure for calibration and zeroing of these components is described in the respective product manuals but is too involved to be included here If the errors are restricted to a subset of the level level inputs or to only those from a particular instrument VOR 1 VOR 2 or GS the most likely cause is a wiring fault Use in 24 Volt Aircraft The Data Logger was originally constructed for use in an aircraft with a 12 volt DC power buss In o
106. ves both the standard GPS satellites and differential corrections from the WAAS satellites GPS Receiver System If the GPS receiver has a problem the operator will observe one of the following symptoms e A Fatal Error of Type G will be displayed on the console e The GPS LED on the console will fail to light e Excessive time is required for the GPS LED to light in excess of two minutes The Ashtech G12 GPS receiver has an indicator mounted on the circuit board that contains both red and green LED s Flashing red indication means the receiver has power 5 volt DC The green LED flashes between the red flashes Each green flash indicates one satellite locked being received and processed e g four 4 green flashes indicates four satellites locked The unit must be locked on to a minimum of five satellites four GPS and WAAS for the Data Logger to operate If a fatal error of type G was displayed check the power to the Ashtech G12 receiver Verify that the 9 pin connector labeled Port A is firmly connected to the COMI serial port of the single board computer If neither of the above is the cause of the problem the COMI serial port should be checked and or the Ashtech G12 should be checked for proper operation independent of one another One method is to use a program supplied by Ashtech called Evaluate This program can be run on a Windows computer using a serial extension cable to connect the computer serial port to the connector lab
Download Pdf Manuals
Related Search
Related Contents
Sony SLV-D950G User's Manual Optoma X316ST data projector Tarjeta del Operador 直射日光の下でも見やすい高輝度ディスプレイ SXGA対応の高 Installation Manual MARINE RADAR Model FCR-2139S 4 月から消防指令センターの運用を開始 A Escola Virtual na Aprendizagem e no Ensino da Matemática SRM -Trainingssystem Bedienungsanleitung Copyright © All rights reserved.
Failed to retrieve file