Skip to content

Commit

Permalink
final v3 fix for real test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei Shuai committed Aug 31, 2017
1 parent e98e3eb commit 169f04c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ it is used for aircraft landing data analysis

TouchDownRecorder .lua scripts is based on FlyWithLua plugin for X-Plane

## feature ##

* touch ground times
* landing fpm, pitch, G force
* max fpm,pitch, G force around landing
* landing log will be automatically written to log file TouchDownRecorderLog.txt
* automatically pop up after landing
* button/key assignment


## Joystick button/key assignment ##

assign button/key to FlyWithLua/TouchDownRecorder/Toggle TouchDownRecorder Chart

![TouchDownRecorder](TouchDownRecorder_cmd.jpg)

## Screenshot on X-Plane 11 ##

![TouchDownRecorder](TouchDownRecorder.jpg)
Expand Down
Binary file modified TouchDownRecorder.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TouchDownRecorder_cmd.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions touchdownrecorder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function draw_curve(mytable, cr,cg,cb, text_to_print, x_text_start, y_text_start
graphics.draw_line(x_tmp, y_tmp + (last_recorded / max_axis * _TD_CHART_HEIGHT), x_tmp + 2, y_tmp + y_height)
if p == max_data then
if draw_max_counter == 0 then
graphics.draw_line(x_tmp, y_orig + 10, x_tmp, y_orig + y_height)
graphics.draw_line(x_tmp, y_orig, x_tmp, y_orig + _TD_CHART_HEIGHT)
end
draw_max_counter = draw_max_counter + 1
end
Expand Down Expand Up @@ -260,7 +260,7 @@ function draw_touchdown_graph()
x_text = draw_curve(touchdown_eng_table, 1.0,1.0,0.0, text_to_p, x_text, y_text, x, y, x, y + (_TD_CHART_HEIGHT / 2), max_eng_axis, max_eng_recorded)

-- now draw the chart line red
max_agl_axis = 200.0
max_agl_axis = 6.0
max_agl_recorded = get_max_val(touchdown_agl_table)
text_to_p = "Max AGL "..string.format("%.02f", max_agl_recorded).."M "
x_text = draw_curve(touchdown_agl_table, 1.0,0.1,0.1, text_to_p, x_text, y_text, x, y, x, y + (_TD_CHART_HEIGHT / 2), max_agl_axis, max_agl_recorded)
Expand Down Expand Up @@ -332,4 +332,4 @@ do_on_mouse_click( "mouse_clck()")

add_macro("Show TouchDownRecorder", "show_touchdown_counter = 60")

create_command("FlyWithLua/TouchDownRecorder/Show", "Show TouchDownRecorder Chart", "toggle_show()","","")
create_command("FlyWithLua/TouchDownRecorder/Show", "Toggle TouchDownRecorder Chart", "toggle_show()","","")

0 comments on commit 169f04c

Please sign in to comment.