mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
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:
parent
eb2a6403e0
commit
aff9e9a831
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user