From 002b1e1c4449a46fdc0d2c4ce732ca16565f5f39 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sun, 24 Jul 2022 16:39:00 +0100 Subject: [PATCH] Tools: FilterTool: add app.py local lanucher for testing --- .../web-firmware/Tools/FilterTool/app.py | 16 ++++++++++++++++ .../web-firmware/Tools/FilterTool/index.html | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 Tools/autotest/web-firmware/Tools/FilterTool/app.py diff --git a/Tools/autotest/web-firmware/Tools/FilterTool/app.py b/Tools/autotest/web-firmware/Tools/FilterTool/app.py new file mode 100644 index 0000000000..76ded1b765 --- /dev/null +++ b/Tools/autotest/web-firmware/Tools/FilterTool/app.py @@ -0,0 +1,16 @@ +import os +from flask import Flask +from flask import render_template + +# A flask app to allow hosting filter tool locally + +this_path = os.path.dirname(os.path.realpath(__file__)) + +app = Flask(__name__, template_folder=this_path, static_folder=this_path) + +@app.route('/') +def index(): + return render_template('index.html') + +if __name__ == "__main__": + app.run() diff --git a/Tools/autotest/web-firmware/Tools/FilterTool/index.html b/Tools/autotest/web-firmware/Tools/FilterTool/index.html index 153f24c4b8..11c81786ea 100644 --- a/Tools/autotest/web-firmware/Tools/FilterTool/index.html +++ b/Tools/autotest/web-firmware/Tools/FilterTool/index.html @@ -5,6 +5,8 @@ ArduPilot Filter Analysis + +