HIL: when in HIL_MODE_ATTITUDE, we get altitude from gps setHIL

we need to skip the barometer and sonar calls

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2891 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
tridge60@gmail.com 2011-07-17 10:33:17 +00:00
parent 3dd3f1091e
commit ba21d6d642
1 changed files with 1 additions and 0 deletions

View File

@ -1315,6 +1315,7 @@ static void update_alt()
#if HIL_MODE == HIL_MODE_ATTITUDE #if HIL_MODE == HIL_MODE_ATTITUDE
current_loc.alt = g_gps->altitude; current_loc.alt = g_gps->altitude;
return;
#else #else
if(g.sonar_enabled){ if(g.sonar_enabled){