From 877bcca880a939b8ffe437776fdc30e54a1b30bd Mon Sep 17 00:00:00 2001 From: peabody124 Date: Tue, 1 Feb 2011 21:04:58 +0000 Subject: [PATCH] Delete hardcoded min and max servo PWM times, they weren't used. Use the configuration settings. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2676 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/CopterControl/System/inc/pios_config.h | 4 ---- flight/CopterControl/System/inc/pios_config_posix.h | 8 ++------ flight/OpenPilot/System/inc/pios_config.h | 5 ----- flight/OpenPilot/System/inc/pios_config_posix.h | 4 ---- 4 files changed, 2 insertions(+), 19 deletions(-) diff --git a/flight/CopterControl/System/inc/pios_config.h b/flight/CopterControl/System/inc/pios_config.h index 302669ddc..665650ac9 100644 --- a/flight/CopterControl/System/inc/pios_config.h +++ b/flight/CopterControl/System/inc/pios_config.h @@ -74,10 +74,6 @@ #define AUXUART_ENABLED 0 #define AUXUART_BAUDRATE 19200 -/* Servos */ -#define SERVOS_POSITION_MIN 800 -#define SERVOS_POSITION_MAX 2200 - #define PIOS_ACTUATOR_STACK_SIZE 992 #define PIOS_MANUAL_STACK_SIZE 624 #define PIOS_SYSTEM_STACK_SIZE 624 diff --git a/flight/CopterControl/System/inc/pios_config_posix.h b/flight/CopterControl/System/inc/pios_config_posix.h index bdd5af428..ddf7ee5d4 100644 --- a/flight/CopterControl/System/inc/pios_config_posix.h +++ b/flight/CopterControl/System/inc/pios_config_posix.h @@ -37,8 +37,8 @@ #define PIOS_INCLUDE_FREERTOS #define PIOS_INCLUDE_COM #define PIOS_INCLUDE_UDP -#define PIOS_INCLUDE_SERVO - +#define PIOS_INCLUDE_SERVO + /* Defaults for Logging */ #define LOG_FILENAME "PIOS.LOG" @@ -50,9 +50,5 @@ #define AUXUART_ENABLED 0 #define AUXUART_BAUDRATE 19200 -/* Servos */ -#define SERVOS_POSITION_MIN 800 -#define SERVOS_POSITION_MAX 2200 - #endif /* PIOS_CONFIG_POSIX_H */ diff --git a/flight/OpenPilot/System/inc/pios_config.h b/flight/OpenPilot/System/inc/pios_config.h index a9e9b7ad7..c51be4f99 100644 --- a/flight/OpenPilot/System/inc/pios_config.h +++ b/flight/OpenPilot/System/inc/pios_config.h @@ -71,11 +71,6 @@ #define AUXUART_ENABLED 0 #define AUXUART_BAUDRATE 19200 -/* Servos */ -#define SERVOS_POSITION_MIN 800 -#define SERVOS_POSITION_MAX 2200 - - #endif /* PIOS_CONFIG_H */ /** * @} diff --git a/flight/OpenPilot/System/inc/pios_config_posix.h b/flight/OpenPilot/System/inc/pios_config_posix.h index 2dd13d67d..d7aa5b73d 100644 --- a/flight/OpenPilot/System/inc/pios_config_posix.h +++ b/flight/OpenPilot/System/inc/pios_config_posix.h @@ -50,10 +50,6 @@ #define AUXUART_ENABLED 0 #define AUXUART_BAUDRATE 19200 -/* Servos */ -#define SERVOS_POSITION_MIN 800 -#define SERVOS_POSITION_MAX 2200 - #define TELEM_QUEUE_SIZE 20 #define TELEM_STACK_SIZE 2048 #endif /* PIOS_CONFIG_POSIX_H */