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

component/qjs-wrapper: rename setAirspeed into setAirSpeed

parent 02c050d6
...@@ -83,7 +83,7 @@ CMAKE_CFLAGS=-I${tinyxml2:location}/include ...@@ -83,7 +83,7 @@ CMAKE_CFLAGS=-I${tinyxml2:location}/include
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
configure-command = true configure-command = true
url = https://lab.nexedi.com/nexedi/mavsdk-wrapper/-/archive/update_set_target_coordinates/mavsdk-wrapper-update_set_target_coordinates.tar.gz url = https://lab.nexedi.com/nexedi/mavsdk-wrapper/-/archive/update_set_target_coordinates/mavsdk-wrapper-update_set_target_coordinates.tar.gz
md5sum = aced1bbc97c1ead062c0ce508b7b9a4d md5sum = e049c40019aca46513e06630ce947ac9
environment = environment =
CPLUS_INCLUDE_PATH=${autopilot-wrapper-header:location}:${mavsdk:location}/include:${mavsdk:location}/include/mavsdk CPLUS_INCLUDE_PATH=${autopilot-wrapper-header:location}:${mavsdk:location}/include:${mavsdk:location}/include/mavsdk
LDFLAGS=-L${mavsdk:location}/lib -Wl,-rpath=${mavsdk:location}/lib LDFLAGS=-L${mavsdk:location}/lib -Wl,-rpath=${mavsdk:location}/lib
...@@ -36,7 +36,7 @@ DLL_PUBLIC int triggerParachute(void); ...@@ -36,7 +36,7 @@ DLL_PUBLIC int triggerParachute(void);
// Flight management functions // Flight management functions
DLL_PUBLIC int loiter(double la, double lo, float a, float radius); DLL_PUBLIC int loiter(double la, double lo, float a, float radius);
DLL_PUBLIC int setAirspeed(float airspeed); DLL_PUBLIC int setAirSpeed(float airspeed);
DLL_PUBLIC int setTargetCoordinates(double la, double lo, float a); DLL_PUBLIC int setTargetCoordinates(double la, double lo, float a);
// Information functions // Information functions
......
...@@ -10,7 +10,7 @@ parts = qjs-wrapper ...@@ -10,7 +10,7 @@ parts = qjs-wrapper
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
configure-command = true configure-command = true
url = https://lab.nexedi.com/nexedi/qjs-wrapper/-/archive/update_settarget/qjs-wrapper-update_settarget.tar.gz url = https://lab.nexedi.com/nexedi/qjs-wrapper/-/archive/update_settarget/qjs-wrapper-update_settarget.tar.gz
md5sum = 4e4814806c7e893cb9c176dc9f430b5b md5sum = 1487b2f30b99e5c2870d0fa955b2bb23
environment = environment =
C_INCLUDE_PATH=include:${open62541:location}/include:${open62541:location}/deps:${open62541:location}/src/pubsub:${quickjs:location}/include:${autopilot-wrapper-header:location} C_INCLUDE_PATH=include:${open62541:location}/include:${open62541:location}/deps:${open62541:location}/src/pubsub:${quickjs:location}/include:${autopilot-wrapper-header:location}
LDFLAGS=-L${open62541:location}/lib -Wl,-rpath=${open62541:location}/lib -L${mavsdk-wrapper:location}/lib -Wl,-rpath=${mavsdk-wrapper:location}/lib LDFLAGS=-L${open62541:location}/lib -Wl,-rpath=${open62541:location}/lib -L${mavsdk-wrapper:location}/lib -Wl,-rpath=${mavsdk-wrapper:location}/lib
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
# not need these here). # not need these here).
[autopilot-wrapper-header] [autopilot-wrapper-header]
filename = autopilot_wrapper.h filename = autopilot_wrapper.h
md5sum = 037878cef0233a5769c890651561df4d md5sum = 16347f35ac6803e1f225bd98c5b92f2c
...@@ -42,4 +42,4 @@ md5sum = 0d51149929f3cbcaac966b815bb1fb0b ...@@ -42,4 +42,4 @@ md5sum = 0d51149929f3cbcaac966b815bb1fb0b
[worker] [worker]
_update_hash_filename_ = drone-scripts/worker.js.jinja _update_hash_filename_ = drone-scripts/worker.js.jinja
md5sum = 29dd9fa7326dee0cce06adb76c7c59c2 md5sum = 4af40990337396ad41decb6f143ca443
/*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80 */ /*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80 */
/*global console, getAltitude, getAltitudeRel, getInitialAltitude, getLatitude, /*global console, getAltitude, getAltitudeRel, getInitialAltitude, getLatitude,
getLongitude, getYaw, execUserScript, initPubsub, loiter, setAirspeed, getLongitude, getYaw, execUserScript, initPubsub, loiter, setAirSpeed,
setMessage, setTargetCoordinates, std, triggerParachute, setMessage, setTargetCoordinates, std, triggerParachute,
updateLogAndProjection Drone, Worker*/ updateLogAndProjection, Drone, Worker*/
import { import {
Drone, Drone,
triggerParachute, triggerParachute,
...@@ -17,7 +17,7 @@ import { ...@@ -17,7 +17,7 @@ import {
getYaw, getYaw,
initPubsub, initPubsub,
loiter, loiter,
setAirspeed, setAirSpeed,
setMessage, setMessage,
setTargetCoordinates, setTargetCoordinates,
updateLogAndProjection updateLogAndProjection
...@@ -38,8 +38,9 @@ import { evalScript, fdopen, loadFile, open } from "std"; ...@@ -38,8 +38,9 @@ import { evalScript, fdopen, loadFile, open } from "std";
(function (Drone, SIGTERM, WNOHANG, Worker, close, console, evalScript, exec, (function (Drone, SIGTERM, WNOHANG, Worker, close, console, evalScript, exec,
fdopen, getAltitude, getAltitudeRel, getInitialAltitude, fdopen, getAltitude, getAltitudeRel, getInitialAltitude,
getLatitude, getLongitude, getLog, getYaw, initPubsub, kill, getLatitude, getLongitude, getLog, getYaw, initPubsub, kill,
loadFile, loiter, open, pipe, setAirspeed, setMessage, loadFile, loiter, open, pipe, setAirSpeed, setMessage,
setReadHandler, setTargetCoordinates, triggerParachute, waitpid) { setReadHandler, setTargetCoordinates, triggerParachute,
updateLogAndProjection, waitpid) {
// Every script is evaluated per drone // Every script is evaluated per drone
"use strict"; "use strict";
...@@ -82,7 +83,7 @@ import { evalScript, fdopen, loadFile, open } from "std"; ...@@ -82,7 +83,7 @@ import { evalScript, fdopen, loadFile, open } from "std";
dest_id: id dest_id: id
})); }));
}, },
setAirspeed: setAirspeed, setAirSpeed: setAirSpeed,
setTargetCoordinates: setTargetCoordinates setTargetCoordinates: setTargetCoordinates
}; };
conf_file.close(); conf_file.close();
...@@ -281,5 +282,5 @@ import { evalScript, fdopen, loadFile, open } from "std"; ...@@ -281,5 +282,5 @@ import { evalScript, fdopen, loadFile, open } from "std";
}(Drone, SIGTERM, WNOHANG, Worker, close, console, evalScript, exec, }(Drone, SIGTERM, WNOHANG, Worker, close, console, evalScript, exec,
fdopen, getAltitude, getAltitudeRel, getInitialAltitude, fdopen, getAltitude, getAltitudeRel, getInitialAltitude,
getLatitude, getLongitude, getLog, getYaw, initPubsub, kill, loadFile, getLatitude, getLongitude, getLog, getYaw, initPubsub, kill, loadFile,
loiter, open, pipe, setAirspeed, setMessage, setReadHandler, loiter, open, pipe, setAirSpeed, setMessage, setReadHandler,
setTargetCoordinates, triggerParachute, waitpid)); setTargetCoordinates, triggerParachute, updateLogAndProjection, waitpid));
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