From 380ee24fa1ceec4e94e50255669429fc4cbae82e Mon Sep 17 00:00:00 2001 From: Anthony Good Date: Mon, 2 Jan 2017 11:03:26 -0500 Subject: [PATCH] 2.0.2017010102 Fixed bug in FEATURE_ELEVATION_CONTROL with brake control (Thanks, zoobie40) --- k3ng_rotator_controller/k3ng_rotator_controller.ino | 12 +++++++++--- k3ng_rotator_controller/rotator_features_test.h | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/k3ng_rotator_controller/k3ng_rotator_controller.ino b/k3ng_rotator_controller/k3ng_rotator_controller.ino index 747bed8..5b931cd 100644 --- a/k3ng_rotator_controller/k3ng_rotator_controller.ino +++ b/k3ng_rotator_controller/k3ng_rotator_controller.ino @@ -269,6 +269,12 @@ 2.0.2016102201 Fixed bug with FEATURE_AZ_POSITION_HH12_AS5045_SSI, negative offset, and crossing between 359 and 0 degrees + 2.0.2017010101 + Minor update in comments in settings files + + 2.0.2017010102 + Fixed bug in FEATURE_ELEVATION_CONTROL with brake control (Thanks, zoobie40) + All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc. in order to compile in Arduino IDE 1.6.7 Anything rotator_*.* should be in the ino directory! @@ -276,7 +282,7 @@ */ -#define CODE_VERSION "2.0.2016102201" +#define CODE_VERSION "2.0.2017010102" #include #include @@ -2107,8 +2113,8 @@ void brake_release(byte az_or_el, byte operation){ } } else { #ifdef FEATURE_ELEVATION_CONTROL - if (operation == BRAKE_RELEASE_ON) { - if (brake_el) { + if (brake_el) { + if (operation == BRAKE_RELEASE_ON) { digitalWriteEnhanced(brake_el, BRAKE_ACTIVE_STATE); brake_el_engaged = 1; #ifdef DEBUG_BRAKE diff --git a/k3ng_rotator_controller/rotator_features_test.h b/k3ng_rotator_controller/rotator_features_test.h index e4550b1..513c192 100755 --- a/k3ng_rotator_controller/rotator_features_test.h +++ b/k3ng_rotator_controller/rotator_features_test.h @@ -12,7 +12,7 @@ */ -// #define FEATURE_ELEVATION_CONTROL // uncomment this for AZ/EL rotators +#define FEATURE_ELEVATION_CONTROL // uncomment this for AZ/EL rotators #define FEATURE_YAESU_EMULATION // uncomment this for Yaesu GS-232 emulation on control port // #define FEATURE_EASYCOM_EMULATION // Easycom protocol emulation on control port (undefine FEATURE_YAESU_EMULATION above)