mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Parachute: make configurable in hwdef.dat
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#include "AP_Parachute.h"
|
||||
|
||||
#if HAL_PARACHUTE_ENABLED
|
||||
|
||||
#include <AP_Relay/AP_Relay.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include <RC_Channel/RC_Channel.h>
|
||||
@@ -172,3 +175,4 @@ AP_Parachute *parachute()
|
||||
}
|
||||
|
||||
}
|
||||
#endif // HAL_PARACHUTE_ENABLED
|
||||
|
||||
@@ -22,6 +22,12 @@
|
||||
|
||||
#define AP_PARACHUTE_CRITICAL_SINK_DEFAULT 0 // default critical sink speed in m/s to trigger emergency parachute
|
||||
|
||||
#ifndef HAL_PARACHUTE_ENABLED
|
||||
#define HAL_PARACHUTE_ENABLED !HAL_MINIMIZE_FEATURES
|
||||
#endif
|
||||
|
||||
#if HAL_PARACHUTE_ENABLED
|
||||
|
||||
/// @class AP_Parachute
|
||||
/// @brief Class managing the release of a parachute
|
||||
class AP_Parachute {
|
||||
@@ -109,3 +115,5 @@ private:
|
||||
namespace AP {
|
||||
AP_Parachute *parachute();
|
||||
};
|
||||
|
||||
#endif // HAL_PARACHUTE_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user