AP_HAL_ChibiOS: add and use AP_WINCH_ENABLED

This commit is contained in:
Peter Barker 2023-03-03 11:48:38 +11:00 committed by Peter Barker
parent fb98ef21aa
commit f47e60d1ea
4 changed files with 9 additions and 1 deletions

View File

@ -70,6 +70,7 @@
#include <AP_ADSB/AP_ADSB.h> // ADS-B RF based collision avoidance module library
#include <AP_Proximity/AP_Proximity.h> // ArduPilot proximity sensor library
#include <AP_OpticalFlow/AP_OpticalFlow.h>
#include <AP_Winch/AP_Winch_config.h>
// Configuration
#include "defines.h"

View File

@ -147,7 +147,7 @@
//////////////////////////////////////////////////////////////////////////////
// winch support
#ifndef WINCH_ENABLED
# define WINCH_ENABLED !HAL_MINIMIZE_FEATURES
# define WINCH_ENABLED AP_WINCH_ENABLED
#endif
//////////////////////////////////////////////////////////////////////////////

View File

@ -49,3 +49,6 @@ define NUM_SERVO_CHANNELS 16
define HAL_PLUSCODE_ENABLE 0
define HAL_OSD_SIDEBAR_ENABLE 0
define OSD_PARAM_ENABLED 0
# no Winch if minimized:
define AP_WINCH_ENABLED 0

View File

@ -3019,6 +3019,10 @@ def add_apperiph_defaults(f):
#define HAL_ENABLE_SAVE_PERSISTENT_PARAMS 0
#endif
#ifndef AP_WINCH_ENABLED
#define AP_WINCH_ENABLED 0
#endif
// end AP_Periph defaults
''')