mirror of https://github.com/ArduPilot/ardupilot
AP_Parachute: remove AUX_FUNC entries based on feature defines
This commit is contained in:
parent
a5c96e16cc
commit
62dc5280ba
|
@ -2,6 +2,10 @@
|
|||
/// @brief Parachute release library
|
||||
#pragma once
|
||||
|
||||
#include "AP_Parachute_config.h"
|
||||
|
||||
#if HAL_PARACHUTE_ENABLED
|
||||
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
|
||||
|
@ -22,13 +26,6 @@
|
|||
#define AP_PARACHUTE_CRITICAL_SINK_DEFAULT 0 // default critical sink speed in m/s to trigger emergency parachute
|
||||
#define AP_PARACHUTE_OPTIONS_DEFAULT 0 // default parachute options: enabled disarm after parachute release
|
||||
|
||||
#ifndef HAL_PARACHUTE_ENABLED
|
||||
// default to parachute enabled to match previous configs
|
||||
#define HAL_PARACHUTE_ENABLED 1
|
||||
#endif
|
||||
|
||||
#if HAL_PARACHUTE_ENABLED
|
||||
|
||||
/// @class AP_Parachute
|
||||
/// @brief Class managing the release of a parachute
|
||||
class AP_Parachute {
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
#ifndef HAL_PARACHUTE_ENABLED
|
||||
// default to parachute enabled to match previous configs
|
||||
#define HAL_PARACHUTE_ENABLED 1
|
||||
#endif
|
Loading…
Reference in New Issue