diff --git a/buzz_scripts/include/act/states.bzz b/buzz_scripts/include/act/states.bzz index edce3b4..9b137d3 100644 --- a/buzz_scripts/include/act/states.bzz +++ b/buzz_scripts/include/act/states.bzz @@ -12,7 +12,7 @@ TARGET_ALTITUDE = 15.0 # m. BVMSTATE = "TURNEDOFF" PICTURE_WAIT = 20 # steps -GOTO_MAXVEL = 0.85 # m/steps +GOTO_MAXVEL = 1.5 # m/steps GOTO_MAXDIST = 150 # m. GOTODIST_TOL = 0.4 # m. GOTOANG_TOL = 0.1 # rad. @@ -35,7 +35,7 @@ function cusfun(){ log("cusfun: yay!!!") LOCAL_TARGET = math.vec2.new(5 ,0 ) local_set_point = math.vec2.new(LOCAL_TARGET.x - pose.position.x ,LOCAL_TARGET.y - pose.position.y ) # has to move 5 meters in x from the home location - if(math.vec2.length(local_set_point) > GOTODIST_TOL){ + if(math.vec2.length(local_set_point) > GOTODIST_TOL){ local_set_point = LimitSpeed(local_set_point, 1.0) goto_abs(local_set_point.x, local_set_point.y, 0.0, 0.0) } diff --git a/buzz_scripts/main.bzz b/buzz_scripts/main.bzz index 427e61a..ca87ef9 100644 --- a/buzz_scripts/main.bzz +++ b/buzz_scripts/main.bzz @@ -9,6 +9,7 @@ include "vstigenv.bzz" include "utils/takeoff_heights.bzz" #State launched after takeoff + AUTO_LAUNCH_STATE = "TASK_ALLOCATE" TARGET = 9.0 EPSILON = 30.0