Skip to content

Commit

Permalink
AP_Parachute: remove AUX_FUNC entries based on feature defines
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Aug 19, 2024
1 parent c98e021 commit 69816da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 4 additions & 7 deletions libraries/AP_Parachute/AP_Parachute.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand All @@ -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 {
Expand Down
8 changes: 8 additions & 0 deletions libraries/AP_Parachute/AP_Parachute_config.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 69816da

Please sign in to comment.