added individual waypoint selection to webcontrol
This commit is contained in:
parent
fa94467652
commit
12ff37965b
|
@ -87,7 +87,7 @@ function barrier_wait(threshold, transf, resumef, bc) {
|
|||
function barrier_allgood(barrier, bc) {
|
||||
barriergood = 1
|
||||
barrier.foreach(function(key, value, robot){
|
||||
log("VS entry : ", key, " ", value, " ", robot)
|
||||
#log("VS entry : ", key, " ", value, " ", robot)
|
||||
if(key == "d"){
|
||||
if(value == 1)
|
||||
return 1
|
||||
|
|
|
@ -100,7 +100,7 @@ function stop() {
|
|||
|
||||
wpreached = 1
|
||||
function indiWP() {
|
||||
BVMSTATE = "INDIWP"
|
||||
BVMSTATE = "WAYPOINT"
|
||||
check_rc_wp()
|
||||
|
||||
wpi = v_wp.get(id)
|
||||
|
|
|
@ -72,7 +72,7 @@ function step() {
|
|||
statef=launch_switch
|
||||
else if(BVMSTATE=="GOHOME") # ends on AUTO_LAUNCH_STATE
|
||||
statef=goinghome
|
||||
else if(BVMSTATE=="INDIWP")
|
||||
else if(BVMSTATE=="WAYPOINT")
|
||||
statef=indiWP
|
||||
else if(BVMSTATE=="IDLE")
|
||||
statef=idle
|
||||
|
|
Loading…
Reference in New Issue