Commit 906bf07f authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Rename setAirspeed into setAirSpeed

parent 09418b37
...@@ -587,7 +587,7 @@ static JSValue js_loiter(JSContext *ctx, JSValueConst thisVal, ...@@ -587,7 +587,7 @@ static JSValue js_loiter(JSContext *ctx, JSValueConst thisVal,
(float)a_arg_double, (float)radius)); (float)a_arg_double, (float)radius));
} }
static JSValue js_setAirspeed(JSContext *ctx, JSValueConst thisVal, static JSValue js_setAirSpeed(JSContext *ctx, JSValueConst thisVal,
int argc, JSValueConst *argv) int argc, JSValueConst *argv)
{ {
double altitude; double altitude;
...@@ -595,7 +595,7 @@ static JSValue js_setAirspeed(JSContext *ctx, JSValueConst thisVal, ...@@ -595,7 +595,7 @@ static JSValue js_setAirspeed(JSContext *ctx, JSValueConst thisVal,
if (JS_ToFloat64(ctx, &altitude, argv[0])) if (JS_ToFloat64(ctx, &altitude, argv[0]))
return JS_EXCEPTION; return JS_EXCEPTION;
return JS_NewInt32(ctx, setAirspeed((float)altitude)); return JS_NewInt32(ctx, setAirSpeed((float)altitude));
} }
static JSValue js_setTargetCoordinates(JSContext *ctx, static JSValue js_setTargetCoordinates(JSContext *ctx,
...@@ -714,7 +714,7 @@ static const JSCFunctionListEntry js_funcs[] = { ...@@ -714,7 +714,7 @@ static const JSCFunctionListEntry js_funcs[] = {
JS_CFUNC_DEF("takeOffAndWait", 0, js_takeOffAndWait ), JS_CFUNC_DEF("takeOffAndWait", 0, js_takeOffAndWait ),
JS_CFUNC_DEF("triggerParachute", 0, js_triggerParachute ), JS_CFUNC_DEF("triggerParachute", 0, js_triggerParachute ),
JS_CFUNC_DEF("loiter", 4, js_loiter ), JS_CFUNC_DEF("loiter", 4, js_loiter ),
JS_CFUNC_DEF("setAirspeed", 1, js_setAirspeed ), JS_CFUNC_DEF("setAirSpeed", 1, js_setAirSpeed ),
JS_CFUNC_DEF("setTargetCoordinates", 3, js_setTargetCoordinates ), JS_CFUNC_DEF("setTargetCoordinates", 3, js_setTargetCoordinates ),
JS_CFUNC_DEF("getAltitude", 0, js_getAltitude ), JS_CFUNC_DEF("getAltitude", 0, js_getAltitude ),
JS_CFUNC_DEF("getAltitudeRel", 0, js_getAltitudeRel ), JS_CFUNC_DEF("getAltitudeRel", 0, js_getAltitudeRel ),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment