1 /***********************************************************************
5 ** This file is part of libkfrgcs.
7 ************************************************************************
9 ** Copyright (c): 2002 by Garrecht Ingenieurgesellschaft
11 ** This file is distributed under the terms of the General Public
12 ** Licence. See the file COPYING for more information.
16 ***********************************************************************/
26 /* Untertypen des Haupttyps Variabel */
45 // Landing gibts nicht
67 converts a given flight log from VOLKSLOGGER binary to IGC-format
71 pointer to binary file buffer
73 serial-number (reference)
74 position of signature in binary file (reference)
77 * @return the length of the output file or 0 on error
80 convert_gcs(int igcfile_version
, FILE *Ausgabedatei
,
81 const uint8_t *const bin_puffer
, size_t length
,
87 descriptive information about each single flight log in the VL
90 unsigned int serno
; // FR serial number
91 tm firsttime
; // time of first fix
92 tm lasttime
; // time of last fix
93 long recordingtime
; // length of trace in seconds
94 int takeoff
; // set to one if VL has detected a takeoff
95 // (v>10kt) inside this trace
96 char pilot
[65]; // flight-info, can be enhanced by all
97 char competitionid
[4]; // headerfields, but these here might be
98 char gliderid
[8]; // enough
102 * Converts binary flight list (called directory) data to a vector of
103 * logs. Each log entry of type DIRENTRY. This vector is returned through
104 * reference parameter &flights.
105 * The functions returns true if conversion was successful.
106 * @param flights Vector to return the read flights.
107 * @param src Pointer to the buffer containing the binary input data.
108 * @param length The length of the data stored in buffer.
112 conv_dir(std::vector
<DIRENTRY
> &flights
,
113 const uint8_t *src
, size_t length
);