diff --git a/libraries/hh12/hh12.cpp b/libraries/hh12/hh12.cpp index 1a44dd2..bd92154 100644 --- a/libraries/hh12/hh12.cpp +++ b/libraries/hh12/hh12.cpp @@ -10,10 +10,12 @@ Code adapted from here: http://www.madscientisthut.com/forum_php/viewtopic.php?f=11&t=7 Updated 2015-02-07 for 12 bit readings - Thanks Johan PA3FPQ +Updated 2016-09-28 Created OPTION_HH12_DONT_GO_HI_END_OF_CYCLE */ +//#define OPTION_HH12_DONT_GO_HI_END_OF_CYCLE // normally this should be commented out (disabled). Uncomment if you have problems with your HH12 int hh12_clock_pin = 0; int hh12_cs_pin = 0; @@ -81,9 +83,10 @@ float hh12::heading(){ } // end of entire clock cycle - // 2015-09-08: Walter is testing these lines - //digitalWrite(hh12_cs_pin, HIGH); // CSn high - //digitalWrite(hh12_clock_pin, HIGH); // CLK high + #if !defined(OPTION_HH12_DONT_GO_HI_END_OF_CYCLE) + digitalWrite(hh12_cs_pin, HIGH); // CSn high + digitalWrite(hh12_clock_pin, HIGH); // CLK high + #endif #ifdef DEBUG_HH12 Serial.print("hh12: packed:"); diff --git a/rotator_features_test.h b/rotator_features_test.h index 5b5a11f..ddfeaa7 100755 --- a/rotator_features_test.h +++ b/rotator_features_test.h @@ -43,7 +43,7 @@ /* position sensors - pick one for azimuth and one for elevation if using an az/el rotator */ -// #define FEATURE_AZ_POSITION_POTENTIOMETER //this is used for both a voltage from a rotator control or a homebrew rotator with a potentiometer +#define FEATURE_AZ_POSITION_POTENTIOMETER //this is used for both a voltage from a rotator control or a homebrew rotator with a potentiometer // #define FEATURE_AZ_POSITION_ROTARY_ENCODER // #define FEATURE_AZ_POSITION_ROTARY_ENCODER_USE_LIB // #define FEATURE_AZ_POSITION_PULSE_INPUT @@ -51,7 +51,7 @@ // #define FEATURE_AZ_POSITION_GET_FROM_REMOTE_UNIT // requires FEATURE_MASTER_WITH_SERIAL_SLAVE or FEATURE_MASTER_WITH_ETHERNET_SLAVE // #define FEATURE_AZ_POSITION_ADAFRUIT_LSM303 // Uncomment for azimuth using LSM303 compass and Adafruit library (https://github.com/adafruit/Adafruit_LSM303) (also uncomment object declaration below) // #define FEATURE_AZ_POSITION_POLOLU_LSM303 // Uncomment for azimuth using LSM303 compass and Polulu library -#define FEATURE_AZ_POSITION_HH12_AS5045_SSI +// #define FEATURE_AZ_POSITION_HH12_AS5045_SSI // #define FEATURE_AZ_POSITION_INCREMENTAL_ENCODER // #define FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER