sed -i 's#!/opt/slapos/parts/python${python:version}/bin/python${python:version}#!${python:location}/bin/python${python:version}#' ${python:location}/bin/python${python:version}-config
sed -i 's#!/opt/slapos/parts/python${python:version}/bin/python${python:version}#!${python:location}/bin/python${python:version}#' ${python:location}/bin/python${python:version}-config
"description":"Parameters to instantiate JS drone",
"description":"Parameters to instantiate JS drone",
"additionalProperties":false,
"additionalProperties":false,
"properties":{
"properties":{
"autopilotType":{
"title":"Type of the drone's autopilot",
"description":"Model of the autopilot used in the drones.",
"type":"string",
"default":"c-astral",
"enum":[
"c-astral",
"sqdr"
]
},
"autopilotIp":{
"autopilotIp":{
"title":"IP address of the drone's autopilot",
"title":"IP address of the drone's autopilot",
"description":"IP used to create a connection with the autopilot.",
"description":"IP used to create a connection with the autopilot.",
...
@@ -22,35 +32,53 @@
...
@@ -22,35 +32,53 @@
"type":"array",
"type":"array",
"default":[]
"default":[]
},
},
"droneNetIf":{
"title":"Drones Network interface",
"description":"Interface used for multicast traffic.",
"type":"string",
"default":"eth0"
},
"isASimulation":{
"isASimulation":{
"title":"Set the flight as a simulation",
"title":"Set the flight as a simulation",
"description":"The option used to determine if the flight is real or if it is a simulation. This affects the context of the flight (e.g. if the take off is manual or automatic).",
"description":"The option used to determine if the flight is real or if it is a simulation. This affects the context of the flight (e.g. if the take off is manual or automatic).",
"type":"boolean",
"type":"boolean",
"default":false
"default":false
},
},
"debug":{
"title":"Set debug mode",
"description":"When debug mode is enabled, drone are publishing the script logs through OPC-UA.",
"type":"boolean",
"default":false
},
"multicastIpv6":{
"multicastIpv6":{
"title":"IP of the multicast group",
"title":"IP of the multicast group",
"description":"IP address used to communicate with the other drones.",
"description":"IP address used to communicate with the other drones.",
"type":"string",
"type":"string",
"default":"ff15::1111"
"default":"ff15::1111"
},
},
"netIf":{
"title":"Network interface",
"description":"Interface used for multicast traffic.",
"type":"string",
"default":"eth0"
},
"flightScript":{
"flightScript":{
"title":"Script's URL of the flight",
"title":"Script's URL of the flight",
"description":"URL of the script which will be executed for the flight. This URL must be publicly accesible so that the drone can fetch the script.",
"description":"URL of the script which will be executed for the flight. This URL must be publicly accesible so that the drone can fetch the script.",
"description":"Parameters to instantiate JS drone",
"additionalProperties":false,
"properties":{
"autopilotIp":{
"title":"IP address of the drone's autopilot",
"description":"IP used to create a connection with the autopilot.",
"type":"string"
},
"autopilotPort":{
"title":"Port of the drone's autopilot",
"description":"Port on which autopilot service is running.",
"type":"integer"
},
"numberOfDrone":{
"title":"Number of drone",
"description":"Number of drone in the swarm",
"type":"integer"
},
"numberOfSubscriber":{
"title":"Number of subscriber",
"description":"Number of subscriber of the swarm",
"type":"integer"
},
"id":{
"title":"drone ID",
"description":"Drone unique identifier",
"type":"integer"
},
"isADrone":{
"title":"Set the requested instance as a drone",
"description":"The option used to determine if the instance is a drone. This affects the context of the user script (e.g. if it should be linked to an autopilot or publish its GPS coordinates)",
"type":"boolean"
},
"isASimulation":{
"title":"Set the flight as a simulation",
"description":"The option used to determine if the flight is real or if it is a simulation. This affects the context of the flight (e.g. if the take off is manual or automatic).",
"type":"boolean"
},
"multicastIp":{
"title":"IP of the multicast group",
"description":"IP address used to communicate with the other drones.",
"type":"string"
},
"netIf":{
"title":"Network interface",
"description":"Interface used for multicast traffic.",
"type":"string"
},
"flightScript":{
"title":"Script's URL of the flight",
"description":"URL of the script which will be executed for the flight. This URL must be publicly accesible so that all drones can fetch the script.",