Purpose/Justification
When I get a new airplane for my simulator, first thing I do is taking it up for some performance evaluation flights. I have created some instruments that display the performance data I want to record.
Example (Engine Manifold Pressure) After changing a flight parameter (e.g. increase throttle lever) and reaching stable flight, I record the performance data manually in an Excel sheet. Recording the data items while flying is a really time consuming chore and I would rather concentrate on flying and let Air Manager do the recording. I tried to use the log() function but it is awkward to separate the data items from all other log entries for import into EXCEL.
Therfore I suggest to have
- a similar file like the log file (plain text), but only for recording flight data.
- a new API helper function record() similar to log() that writes a data entry into the flight data file.
The API page for 'Record' would look like this:
Record
Code: Select all
Contents
1 Description
2 Return value
3 Arguments
4 Example
Code: Select all
value = record(message, ...)
value = record(type, message, ...)
Return value
This function won't return any value.
Arguments
Code: Select all
# Argument Type Description
1 type String (Optional) Can be "INFO", "DATA" or "EVNT". Default is set to be an INFO message.
2 .. n message Object The message to put in the log
Example
Code: Select all
-- Record flight info to the flight data file
record("INFO", "Aircraft", "C172S")
-- Record flight data to the flight data file
record("DATA", "KNOTS", tostring(speed))
-- Record flight event to the flight data file
record("EVNT", "FLAPS_UP")
Code: Select all
2022-07-17 17:20:02.611 INFO Aircraft: C172S
2022-07-17 17:25:14.661 DATA KNOTS 112.3
2022-07-17 17:27:08.467 EVNT FLAPS_UP
File location
C\:User\<user>\Air Manager\data.txt
Paul