ardupilot/ArduCopter/precision_landing.cpp

25 lines
402 B
C++
Raw Normal View History

/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
//
// functions to support precision landing
//
#include "Copter.h"
#if PRECISION_LANDING == ENABLED
void Copter::init_precland()
{
copter.precland.init();
}
void Copter::update_precland()
{
copter.precland.update(current_loc.alt);
// log output
Log_Write_Precland();
}
#endif