mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
f7fedee8cc
This commit changes the way libraries headers are included in source files: - If the header is in the same directory the source belongs to, so the notation '#include ""' is used with the path relative to the directory containing the source. - If the header is outside the directory containing the source, then we use the notation '#include <>' with the path relative to libraries folder. Some of the advantages of such approach: - Only one search path for libraries headers. - OSs like Windows may have a better lookup time.
38 lines
988 B
C++
38 lines
988 B
C++
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
|
|
/// @file limits.h
|
|
/// @brief Imposes limits on location (geofence), altitude and other parameters.
|
|
/// Each limit breach will trigger an action or set of actions to recover. Adapted from geofence.
|
|
/// @author Andrew Tridgell
|
|
/// Andreas Antonopoulos
|
|
|
|
#ifndef __AP_LIMIT_ALTITUDE_H__
|
|
#define __AP_LIMIT_ALTITUDE_H__
|
|
|
|
#include "AP_Limits.h"
|
|
#include "AP_Limit_Module.h"
|
|
#include <AP_Param/AP_Param.h>
|
|
|
|
class AP_Limit_Altitude : public AP_Limit_Module {
|
|
|
|
public:
|
|
AP_Limit_Altitude(const struct Location *current_loc);
|
|
|
|
AP_Int32 min_alt();
|
|
AP_Int32 max_alt();
|
|
|
|
bool init();
|
|
bool triggered();
|
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
protected:
|
|
const struct Location * _current_loc;
|
|
AP_Int32 _min_alt;
|
|
AP_Int32 _max_alt;
|
|
|
|
|
|
};
|
|
|
|
#endif // __AP_LIMIT_ALTITUDE_H__
|