Merge commit '7d74c9291a79425747986d59184ade39e56b99dd' into ros_drones_ws

This commit is contained in:
david 2018-11-12 18:11:44 -05:00
commit 0f23cdd162
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ gohomeT=100
function goinghome() {
BVMSTATE = "GOHOME"
if(V_TYPE == 0 or V_TYPE == 1) { # flying vehicle so TAKE_OFF
m_navigation = vec_from_gps(homegps.latitude, homegps.longitude, 0)
m_navigation = vec_from_gps(homegps.lat, homegps.lng, 0)
#print(" has to move ", math.vec2.length(m_navigation), math.vec2.angle(m_navigation))
if(math.vec2.length(m_navigation) < GOTODIST_TOL){ # reached destination
BVMSTATE = AUTO_LAUNCH_STATE