From 7d24a16f0b7bae45ce47eb57aec938f769833a32 Mon Sep 17 00:00:00 2001 From: mtbsteve Date: Sun, 28 Jul 2019 13:41:22 +0200 Subject: [PATCH 1/2] Fixes and tweaks for the Jetson TX2 --- files/apsync/video.html | 7 +++++-- files/filesystem.html | 2 +- files/index.html | 4 +--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/files/apsync/video.html b/files/apsync/video.html index 6386f8e..ba2b759 100644 --- a/files/apsync/video.html +++ b/files/apsync/video.html @@ -11,7 +11,7 @@

ArduPilot

-

Video Streaming

+

Video Streaming - (for UDP Streaming use Cherrypy instead)

Network Interface:

@@ -21,6 +21,9 @@

Video Streaming

+
+

home + - \ No newline at end of file + diff --git a/files/filesystem.html b/files/filesystem.html index 92946f3..5de528a 100644 --- a/files/filesystem.html +++ b/files/filesystem.html @@ -12,7 +12,7 @@

ArduPilot

-

ArduPilot Filesystem

+

ArduPilot Companion Computer Filesystem

Index of /

diff --git a/files/index.html b/files/index.html index 1ccedb1..3dcbc83 100644 --- a/files/index.html +++ b/files/index.html @@ -15,14 +15,12 @@

ArduPilot Web Server

-Welcome to the ArduPilot Web Interface!

+Welcome to the ArduPilot Web Interface for Nvidia Jetson TX2

From 384f9651fbaab0aa83f8aa86c3c6c98253ca998a Mon Sep 17 00:00:00 2001 From: mtbsteve Date: Sun, 28 Jul 2019 17:07:55 +0200 Subject: [PATCH 2/2] temporary fix for the HOME path issue - added an absolute path to /home/apsync --- functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.c b/functions.c index 7e8d38f..eabe1f8 100644 --- a/functions.c +++ b/functions.c @@ -813,7 +813,8 @@ static void start_rtsp_server(struct template_state *tmpl, const char *name, con } else if (stream_server_pid == 0) { char* home_dir; char stream_server_path[256]; - home_dir = getenv("HOME"); +// home_dir = getenv("HOME"); + home_dir = "/home/apsync"; // fix the path issue when executed from /etc/rc.local sprintf(stream_server_path, "%s/start_apstreamline/bin/stream_server", home_dir); printf("%s", stream_server_path); if (execl(stream_server_path, "stream_server", argv[0], NULL)==-1) {