Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qjs-wrapper
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
nexedi
qjs-wrapper
Commits
4e0e3fa2
Commit
4e0e3fa2
authored
Sep 17, 2024
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qjs_wrapper.c: fix altitude
parent
eba60e64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
qjs_wrapper.c
qjs_wrapper.c
+1
-1
No files found.
qjs_wrapper.c
View file @
4e0e3fa2
...
...
@@ -149,7 +149,7 @@ static JSValue js_new_position(JSContext *ctx, JSValueConst thisVal,
newPositionArray
=
getPositionArray
();
s
->
latitude
=
(
double
)
positionArray
[
LATITUDE
]
/
1e7
;
s
->
longitude
=
(
double
)
positionArray
[
LONGITUDE
]
/
1e7
;
s
->
altitude
=
(
UA_Double
)(
positionArray
[
REL
_ALTITUDE
]
/
1000
);
s
->
altitude
=
(
UA_Double
)(
positionArray
[
ABS
_ALTITUDE
]
/
1000
);
s
->
timestamp
=
positionArray
[
TIMESTAMP
];
JS_SetOpaque
(
obj
,
s
);
free
(
newPositionArray
);
...
...
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