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
906bf07f
Commit
906bf07f
authored
Aug 29, 2023
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename setAirspeed into setAirSpeed
parent
09418b37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
qjs_wrapper.c
qjs_wrapper.c
+3
-3
No files found.
qjs_wrapper.c
View file @
906bf07f
...
...
@@ -587,7 +587,7 @@ static JSValue js_loiter(JSContext *ctx, JSValueConst thisVal,
(
float
)
a_arg_double
,
(
float
)
radius
));
}
static
JSValue
js_setAir
s
peed
(
JSContext
*
ctx
,
JSValueConst
thisVal
,
static
JSValue
js_setAir
S
peed
(
JSContext
*
ctx
,
JSValueConst
thisVal
,
int
argc
,
JSValueConst
*
argv
)
{
double
altitude
;
...
...
@@ -595,7 +595,7 @@ static JSValue js_setAirspeed(JSContext *ctx, JSValueConst thisVal,
if
(
JS_ToFloat64
(
ctx
,
&
altitude
,
argv
[
0
]))
return
JS_EXCEPTION
;
return
JS_NewInt32
(
ctx
,
setAir
s
peed
((
float
)
altitude
));
return
JS_NewInt32
(
ctx
,
setAir
S
peed
((
float
)
altitude
));
}
static
JSValue
js_setTargetCoordinates
(
JSContext
*
ctx
,
...
...
@@ -714,7 +714,7 @@ static const JSCFunctionListEntry js_funcs[] = {
JS_CFUNC_DEF
(
"takeOffAndWait"
,
0
,
js_takeOffAndWait
),
JS_CFUNC_DEF
(
"triggerParachute"
,
0
,
js_triggerParachute
),
JS_CFUNC_DEF
(
"loiter"
,
4
,
js_loiter
),
JS_CFUNC_DEF
(
"setAir
speed"
,
1
,
js_setAirs
peed
),
JS_CFUNC_DEF
(
"setAir
Speed"
,
1
,
js_setAirS
peed
),
JS_CFUNC_DEF
(
"setTargetCoordinates"
,
3
,
js_setTargetCoordinates
),
JS_CFUNC_DEF
(
"getAltitude"
,
0
,
js_getAltitude
),
JS_CFUNC_DEF
(
"getAltitudeRel"
,
0
,
js_getAltitudeRel
),
...
...
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