This commit is contained in:
David 2017-02-22 07:23:24 +00:00
parent aab285928a
commit 00242676c1
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ TARGET_ALTITUDE = 5.0
# Lennard-Jones parameters
TARGET = 10.0 #0.000001001
EPSILON = 10.0 #0.001
EPSILON = 20.0 #0.001
# Lennard-Jones interaction magnitude
function lj_magnitude(dist, target, epsilon) {
@ -41,7 +41,7 @@ function hexagon() {
if(neighbors.count() > 0)
math.vec2.scale(accum, 1.0 / neighbors.count())
# Move according to vector
print("Robot ", id, "must push ",accum.length, "; ", accum.angle)
#print("Robot ", id, "must push ",accum.length, "; ", accum.angle)
uav_moveto(accum.x, accum.y)
}
@ -55,7 +55,7 @@ function hexagon() {
# Constants
#
BARRIER_VSTIG = 1
ROBOTS = 3 # number of robots in the swarm
ROBOTS = 4 # number of robots in the swarm
#
# Sets a barrier