Removed some debugging log to reduce the message size:

modified:   src/rosbuzz/buzz_scripts/include/taskallocate/bidding.bzz
This commit is contained in:
Fang Wu 2018-11-07 18:53:52 -05:00
parent 12ff37965b
commit 601b1d91e6
1 changed files with 6 additions and 3 deletions

View File

@ -457,6 +457,9 @@ function init_bidding() {
# executed at each time step # executed at each time step
function bidding() { function bidding() {
# enable debug will increase the message size
debug = 0
# read the csv file with the waypoints information # read the csv file with the waypoints information
read_from_csv(CSV_FILENAME_AND_PATH) read_from_csv(CSV_FILENAME_AND_PATH)
@ -565,11 +568,11 @@ function bidding() {
bid_made = 1 bid_made = 1
bid_time = experiment_iteration bid_time = experiment_iteration
bidded_area = highest_area bidded_area = highest_area
log("Drone", id, "SET its bid", highest_bid, "on", highest_area, "at iter", experiment_iteration, "status was", stig_get_status(highest_area)) log("Drone", id, "SET its bid", highest_bid, "on", highest_area, "at iter", experiment_iteration)
} else { } else {
bid_made = 0 bid_made = 0
bidded_area = -1 bidded_area = -1
log("Drone", id, "GAVE UP bid", highest_bid, "on", highest_area, "at iter", experiment_iteration, "status was", stig_get_status(highest_area)) log("Drone", id, "GAVE UP bid", highest_bid, "on", highest_area, "at iter", experiment_iteration)
} }
} }
} }
@ -616,7 +619,7 @@ function bidding() {
######################################## ########################################
# TEMP DEBUG BLOCK START ############### # TEMP DEBUG BLOCK START ###############
######################################## ########################################
if (id == 2) { if (id == 2 and debug == 1) {
if (experiment_iteration%20==0){ if (experiment_iteration%20==0){
print_out_bidding_stigmergy() print_out_bidding_stigmergy()
} }