Plane: handle TERRAIN_CHECK requests

This commit is contained in:
Andrew Tridgell 2014-07-22 18:08:03 +10:00
parent a458f1bf5f
commit 6f538aa556
2 changed files with 4 additions and 1 deletions

View File

@ -1473,8 +1473,9 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
#endif
case MAVLINK_MSG_ID_TERRAIN_DATA:
case MAVLINK_MSG_ID_TERRAIN_CHECK:
#if HAVE_AP_TERRAIN
terrain.handle_data(msg);
terrain.handle_data(chan, msg);
#endif
break;

View File

@ -867,9 +867,11 @@ const AP_Param::Info var_info[] PROGMEM = {
// @Path: ../libraries/AP_RangeFinder/RangeFinder.cpp
GOBJECT(sonar, "RNGFND", RangeFinder),
#if HAVE_AP_TERRAIN
// @Group: TERRAIN
// @Path: ../libraries/AP_Terrain/AP_Terrain.cpp
GOBJECT(terrain, "TERRAIN_", AP_Terrain),
#endif
// RC channel
//-----------