OPTION_HH12_DONT_GO_HI_END_OF_CYCLE added for hh12 library

This commit is contained in:
Anthony Good 2016-09-28 13:34:19 -04:00
parent ba24c61885
commit ebf0f0c01c
2 changed files with 8 additions and 5 deletions

View File

@ -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:");

View File

@ -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