mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
AP_HAL_ChibiOS: add and use AP_WINCH_ENABLED
This commit is contained in:
parent
fb98ef21aa
commit
f47e60d1ea
@ -70,6 +70,7 @@
|
|||||||
#include <AP_ADSB/AP_ADSB.h> // ADS-B RF based collision avoidance module library
|
#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_Proximity/AP_Proximity.h> // ArduPilot proximity sensor library
|
||||||
#include <AP_OpticalFlow/AP_OpticalFlow.h>
|
#include <AP_OpticalFlow/AP_OpticalFlow.h>
|
||||||
|
#include <AP_Winch/AP_Winch_config.h>
|
||||||
|
|
||||||
// Configuration
|
// Configuration
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
@ -147,7 +147,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// winch support
|
// winch support
|
||||||
#ifndef WINCH_ENABLED
|
#ifndef WINCH_ENABLED
|
||||||
# define WINCH_ENABLED !HAL_MINIMIZE_FEATURES
|
# define WINCH_ENABLED AP_WINCH_ENABLED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -49,3 +49,6 @@ define NUM_SERVO_CHANNELS 16
|
|||||||
define HAL_PLUSCODE_ENABLE 0
|
define HAL_PLUSCODE_ENABLE 0
|
||||||
define HAL_OSD_SIDEBAR_ENABLE 0
|
define HAL_OSD_SIDEBAR_ENABLE 0
|
||||||
define OSD_PARAM_ENABLED 0
|
define OSD_PARAM_ENABLED 0
|
||||||
|
|
||||||
|
# no Winch if minimized:
|
||||||
|
define AP_WINCH_ENABLED 0
|
||||||
|
@ -3019,6 +3019,10 @@ def add_apperiph_defaults(f):
|
|||||||
#define HAL_ENABLE_SAVE_PERSISTENT_PARAMS 0
|
#define HAL_ENABLE_SAVE_PERSISTENT_PARAMS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef AP_WINCH_ENABLED
|
||||||
|
#define AP_WINCH_ENABLED 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// end AP_Periph defaults
|
// end AP_Periph defaults
|
||||||
''')
|
''')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user