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
Léo-Paul Géneau
slapos
Commits
04bcd923
Commit
04bcd923
authored
Sep 18, 2024
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/js-drone: fix unserializable position
Workaround for
https://github.com/bellard/quickjs/issues/315
.
parent
dc3596bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
software/js-drone/buildout.hash.cfg
software/js-drone/buildout.hash.cfg
+1
-1
software/js-drone/drone-scripts/worker.js.jinja2
software/js-drone/drone-scripts/worker.js.jinja2
+9
-1
No files found.
software/js-drone/buildout.hash.cfg
View file @
04bcd923
...
...
@@ -46,4 +46,4 @@ md5sum = 3bbb0f80b644d86784aab99b03e88c2f
[worker]
_update_hash_filename_ = drone-scripts/worker.js.jinja2
md5sum =
2afbc5c18a453404f6c60e874f592577
md5sum =
f3ad1e74bdb977c9444713f14a2ea6fe
software/js-drone/drone-scripts/worker.js.jinja2
View file @
04bcd923
...
...
@@ -80,7 +80,15 @@ import { evalScript, fdopen, loadFile, open } from "std";
{% if isADrone -%}
getAltitudeAbs: getAltitude,
getClimbRate: getClimbRate,
getCurrentPosition: getPosition,
getCurrentPosition: function () {
const position = getPosition();
return {
latitude: position.latitude,
longitude: position.longitude,
altitude: position.altitude,
timestamp: position.timestamp
};
},
getInitialAltitude: getInitialAltitude,
gpsIsOk: gpsIsOk,
getMaxCommandFrequency: getMaxCommandFrequency,
...
...
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