Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos
Commits
d48e6418
Commit
d48e6418
authored
Aug 31, 2023
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/js-drone: reduce connection timeout to 5 seconds
parent
acfb0f48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
software/js-drone/buildout.hash.cfg
software/js-drone/buildout.hash.cfg
+1
-1
software/js-drone/drone-scripts/main.js.jinja2
software/js-drone/drone-scripts/main.js.jinja2
+2
-1
No files found.
software/js-drone/buildout.hash.cfg
View file @
d48e6418
...
@@ -30,7 +30,7 @@ md5sum = d12fbb134c587173ddff46ff1bc6ffe7
...
@@ -30,7 +30,7 @@ md5sum = d12fbb134c587173ddff46ff1bc6ffe7
[main]
[main]
_update_hash_filename_ = drone-scripts/main.js.jinja2
_update_hash_filename_ = drone-scripts/main.js.jinja2
md5sum =
dfc0ae336c45950846a6e0cf754093a6
md5sum =
4279a9e094dee9a530c27744aed0899d
[pubsub]
[pubsub]
_update_hash_filename_ = drone-scripts/pubsub.js.jinja2
_update_hash_filename_ = drone-scripts/pubsub.js.jinja2
...
...
software/js-drone/drone-scripts/main.js.jinja2
View file @
d48e6418
...
@@ -25,6 +25,7 @@ import { err, exit, open, out } from "std";
...
@@ -25,6 +25,7 @@ import { err, exit, open, out } from "std";
var CONF_PATH = {{ json_module.dumps(configuration) }},
var CONF_PATH = {{ json_module.dumps(configuration) }},
conf_file = open(CONF_PATH, "r"),
conf_file = open(CONF_PATH, "r"),
configuration = JSON.parse(conf_file.readAsString()),
configuration = JSON.parse(conf_file.readAsString()),
AUTOPILOT_CONNECTION_TIMEOUT = 5,
MAVSDK_LOG_FILE_PATH =
MAVSDK_LOG_FILE_PATH =
"{{ log_dir }}/mavsdk_" + new Date().toISOString() + ".log",
"{{ log_dir }}/mavsdk_" + new Date().toISOString() + ".log",
LOG_FILE =
LOG_FILE =
...
@@ -85,7 +86,7 @@ import { err, exit, open, out } from "std";
...
@@ -85,7 +86,7 @@ import { err, exit, open, out } from "std";
configuration.autopilotIp,
configuration.autopilotIp,
configuration.autopilotPort,
configuration.autopilotPort,
MAVSDK_LOG_FILE_PATH,
MAVSDK_LOG_FILE_PATH,
60
AUTOPILOT_CONNECTION_TIMEOUT
),
),
"Failed to connect to " + address
"Failed to connect to " + address
);
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment