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
e5e39b54
Commit
e5e39b54
authored
May 28, 2022
by
Thomas Gambier
🚴🏼
Committed by
Léo-Paul Géneau
Jul 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put droneVariableArray in header file
parent
f0906899
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
37 deletions
+44
-37
include/dronedge.h
include/dronedge.h
+41
-0
include/pubsub.h
include/pubsub.h
+1
-1
pubsub.c
pubsub.c
+1
-1
qjs_wrapper.c
qjs_wrapper.c
+1
-35
No files found.
include/dronedge.h
0 → 100644
View file @
e5e39b54
#ifndef __DRONEDGE_H__
#define __DRONEDGE_H__
#include <open62541/server.h>
#include "pubsub.h"
UA_Float
defaultFloat
=
0
;
UA_Double
defaultDouble
=
0
;
const
VariableData
droneVariableArray
[]
=
{
{
.
name
=
"latitude"
,
.
description
=
"Latitude"
,
.
pdefaultValue
=
&
defaultDouble
,
.
type
=
UA_TYPES_DOUBLE
,
.
builtInType
=
UA_NS0ID_DOUBLE
,
},
{
.
name
=
"longitude"
,
.
description
=
"Longitude"
,
.
pdefaultValue
=
&
defaultDouble
,
.
type
=
UA_TYPES_DOUBLE
,
.
builtInType
=
UA_NS0ID_DOUBLE
,
},
{
.
name
=
"altitude_abs"
,
.
description
=
"Absolute Altitude (AMSL)"
,
.
pdefaultValue
=
&
defaultFloat
,
.
type
=
UA_TYPES_FLOAT
,
.
builtInType
=
UA_NS0ID_FLOAT
,
},
{
.
name
=
"altitude_rel"
,
.
description
=
"Relative Altitude"
,
.
pdefaultValue
=
&
defaultFloat
,
.
type
=
UA_TYPES_FLOAT
,
.
builtInType
=
UA_NS0ID_FLOAT
,
},
};
#endif
/* __DRONEDGE_H__ */
include/pubsub.h
View file @
e5e39b54
pubsub.c
View file @
e5e39b54
qjs_wrapper.c
View file @
e5e39b54
#include <quickjs/quickjs.h>
#include <quickjs/quickjs.h>
#include "mavsdk_wrapper.h"
#include "mavsdk_wrapper.h"
#include "
pubsub
.h"
#include "
dronedge
.h"
static
JSClassID
js_drone_class_id
;
static
JSClassID
js_drone_class_id
;
UA_Float
defaultFloat
=
0
;
UA_Double
defaultDouble
=
0
;
const
VariableData
droneVariableArray
[]
=
{
{
.
name
=
"latitude"
,
.
description
=
"Latitude"
,
.
pdefaultValue
=
&
defaultDouble
,
.
type
=
UA_TYPES_DOUBLE
,
.
builtInType
=
UA_NS0ID_DOUBLE
,
},
{
.
name
=
"longitude"
,
.
description
=
"Longitude"
,
.
pdefaultValue
=
&
defaultDouble
,
.
type
=
UA_TYPES_DOUBLE
,
.
builtInType
=
UA_NS0ID_DOUBLE
,
},
{
.
name
=
"altitude_abs"
,
.
description
=
"Absolute Altitude (AMSL)"
,
.
pdefaultValue
=
&
defaultFloat
,
.
type
=
UA_TYPES_FLOAT
,
.
builtInType
=
UA_NS0ID_FLOAT
,
},
{
.
name
=
"altitude_rel"
,
.
description
=
"Relative Altitude"
,
.
pdefaultValue
=
&
defaultFloat
,
.
type
=
UA_TYPES_FLOAT
,
.
builtInType
=
UA_NS0ID_FLOAT
,
},
};
static
UA_Boolean
pubsub_running
=
true
;
static
UA_Boolean
pubsub_running
=
true
;
int
nbDrone
;
int
nbDrone
;
...
...
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