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

Rename setAirspeed into setAirSpeed

parent 1c7e2c35
......@@ -588,7 +588,7 @@ static JSValue js_loiter(JSContext *ctx, JSValueConst thisVal,
(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)
{
double altitude;
......@@ -596,7 +596,7 @@ static JSValue js_setAirspeed(JSContext *ctx, JSValueConst thisVal,
if (JS_ToFloat64(ctx, &altitude, argv[0]))
return JS_EXCEPTION;
return JS_NewInt32(ctx, setAirspeed((float)altitude));
return JS_NewInt32(ctx, setAirSpeed((float)altitude));
}
static JSValue js_setTargetCoordinates(JSContext *ctx,
......@@ -715,7 +715,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("setAirspeed", 1, js_setAirspeed ),
JS_CFUNC_DEF("setAirSpeed", 1, js_setAirSpeed ),
JS_CFUNC_DEF("setTargetCoordinates", 3, js_setTargetCoordinates ),
JS_CFUNC_DEF("getAltitude", 0, js_getAltitude ),
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