This commit is contained in:
David St-Onge 2017-04-02 18:54:11 -04:00
parent ef4f4e23e6
commit 4a8d628c32
1 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ CURSTATE = "TURNEDOFF"
# Lennard-Jones parameters # Lennard-Jones parameters
TARGET = 10.0 #0.000001001 TARGET = 10.0 #0.000001001
EPSILON = 12.0 #0.001 EPSILON = 20.0 #0.001
# Lennard-Jones interaction magnitude # Lennard-Jones interaction magnitude
function lj_magnitude(dist, target, epsilon) { function lj_magnitude(dist, target, epsilon) {
@ -56,7 +56,7 @@ function hexagon() {
# Constants # Constants
# #
BARRIER_VSTIG = 1 BARRIER_VSTIG = 1
ROBOTS = 3 # number of robots in the swarm # ROBOTS = 3 # number of robots in the swarm
# #
# Sets a barrier # Sets a barrier
@ -178,6 +178,7 @@ function step() {
} }
statef() statef()
log("Current state: ", CURSTATE) log("Current state: ", CURSTATE)
log("Swarm size: ",ROBOTS)
} }
# Executed once when the robot (or the simulator) is reset. # Executed once when the robot (or the simulator) is reset.