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
1
Merge Requests
1
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
eba60e64
Commit
eba60e64
authored
Jul 04, 2024
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add getMaxCommandFrequency
parent
b13c2c85
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
include/autopilot_API.h
include/autopilot_API.h
+1
-0
qjs_wrapper.c
qjs_wrapper.c
+7
-0
No files found.
include/autopilot_API.h
View file @
eba60e64
...
...
@@ -36,6 +36,7 @@ DLL_PUBLIC double getTakeOffAltitude(void);
DLL_PUBLIC
float
getYaw
(
void
);
DLL_PUBLIC
float
getSpeed
(
void
);
DLL_PUBLIC
float
getClimbRate
(
void
);
DLL_PUBLIC
int
getMaxCommandFrequency
(
void
);
DLL_PUBLIC
int
gpsIsOk
(
void
);
DLL_PUBLIC
int
isReadyToFly
(
void
);
DLL_PUBLIC
int
isLanding
(
void
);
...
...
qjs_wrapper.c
View file @
eba60e64
...
...
@@ -807,6 +807,12 @@ static JSValue js_getClimbRate(JSContext *ctx, JSValueConst thisVal,
return
JS_NewFloat64
(
ctx
,
getClimbRate
());
}
static
JSValue
js_getMaxCommandFrequency
(
JSContext
*
ctx
,
JSValueConst
thisVal
,
int
argc
,
JSValueConst
*
argv
)
{
return
JS_NewInt32
(
ctx
,
getMaxCommandFrequency
());
}
static
JSValue
js_gpsIsOk
(
JSContext
*
ctx
,
JSValueConst
this_val
,
int
argc
,
JSValueConst
*
argv
)
{
...
...
@@ -857,6 +863,7 @@ static const JSCFunctionListEntry js_funcs[] = {
JS_CFUNC_DEF
(
"getYaw"
,
0
,
js_getYaw
),
JS_CFUNC_DEF
(
"getSpeed"
,
0
,
js_getSpeed
),
JS_CFUNC_DEF
(
"getClimbRate"
,
0
,
js_getClimbRate
),
JS_CFUNC_DEF
(
"getMaxCommandFrequency"
,
0
,
js_getMaxCommandFrequency
),
JS_CFUNC_DEF
(
"gpsIsOk"
,
0
,
js_gpsIsOk
),
JS_CFUNC_DEF
(
"isReadyToFly"
,
0
,
js_isReadyToFly
),
JS_CFUNC_DEF
(
"isLanding"
,
0
,
js_isLanding
),
...
...
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