modif of testscript
This commit is contained in:
parent
867da8ea74
commit
38b3998281
|
@ -3,8 +3,8 @@
|
||||||
include "/home/ubuntu/buzz/src/include/vec2.bzz"
|
include "/home/ubuntu/buzz/src/include/vec2.bzz"
|
||||||
|
|
||||||
# Lennard-Jones parameters
|
# Lennard-Jones parameters
|
||||||
TARGET = 0.00000010000005
|
TARGET = 0.000000100001
|
||||||
EPSILON = 0.1
|
EPSILON = 0.01
|
||||||
|
|
||||||
# Lennard-Jones interaction magnitude
|
# Lennard-Jones interaction magnitude
|
||||||
function lj_magnitude(dist, target, epsilon) {
|
function lj_magnitude(dist, target, epsilon) {
|
||||||
|
@ -89,11 +89,11 @@ neighbors.listen("cmd",
|
||||||
}
|
}
|
||||||
|
|
||||||
function takeoff() {
|
function takeoff() {
|
||||||
if( flight.status == 2) {
|
if( flight.status == 3) {
|
||||||
barrier_set(ROBOTS,hexagon)
|
barrier_set(ROBOTS,hexagon)
|
||||||
barrier_ready()
|
barrier_ready()
|
||||||
}
|
}
|
||||||
else if(flight.status!=3)
|
else
|
||||||
uav_takeoff()
|
uav_takeoff()
|
||||||
}
|
}
|
||||||
function land() {
|
function land() {
|
||||||
|
|
Loading…
Reference in New Issue