CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Rover/precision_landing.cpp
Views: 1798
1
//
2
// functions to support precision landing
3
//
4
5
#include "Rover.h"
6
7
#if AC_PRECLAND_ENABLED
8
9
void Rover::init_precland()
10
{
11
// scheduler table specifies 400Hz, but we can call it no faster
12
// than the scheduler loop rate:
13
rover.precland.init(MIN(400, scheduler.get_loop_rate_hz()));
14
}
15
16
void Rover::update_precland()
17
{
18
// alt will be unused if we pass false through as the second parameter:
19
return precland.update(0, false);
20
}
21
#endif
22
23