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/Blimp/mode_land.cpp
Views: 1798
1
#include "Blimp.h"
2
/*
3
* Init and run calls for land flight mode
4
*/
5
6
// Runs the main land controller
7
void ModeLand::run()
8
{
9
//Stop moving
10
motors->right_out = 0;
11
motors->front_out = 0;
12
motors->yaw_out = 0;
13
motors->down_out = 0;
14
}
15
16
// set_mode_land_failsafe - sets mode to LAND
17
// this is always called from a failsafe so we trigger notification to pilot
18
void Blimp::set_mode_land_failsafe(ModeReason reason)
19
{
20
set_mode(Mode::Number::LAND, reason);
21
22
// alert pilot to mode change
23
AP_Notify::events.failsafe_mode_change = 1;
24
}
25