2.0.2015092001

LANGUAGE_FRENCH (contributed by Marc-Andre, VE2EVN)
      fixed issue with rotator_analog_az inferring with other pins if defined but not used
This commit is contained in:
Anthony Good 2015-09-20 10:32:11 -04:00
parent f30b31fe4b
commit eaac2af69f
12 changed files with 285 additions and 136 deletions

View File

@ -409,9 +409,14 @@
Fixed k3ngdisplay.h / LiquidCrystal.h compilation problems with Arduino IDE Fixed k3ngdisplay.h / LiquidCrystal.h compilation problems with Arduino IDE
Integrated DebugClass (debug.h and debug.cpp) contributed from Matt VK5ZM Integrated DebugClass (debug.h and debug.cpp) contributed from Matt VK5ZM
2.0.2015092001
LANGUAGE_FRENCH (contributed by Marc-Andre, VE2EVN)
fixed issue with rotator_analog_az inferring with other pins if defined but not used
*/ */
#define CODE_VERSION "2.0.2015090601" #define CODE_VERSION "2.0.2015092001"
#include <avr/pgmspace.h> #include <avr/pgmspace.h>
#include <EEPROM.h> #include <EEPROM.h>
@ -549,6 +554,10 @@
/*----------------------- variables -------------------------------------*/ /*----------------------- variables -------------------------------------*/
byte incoming_serial_byte = 0; byte incoming_serial_byte = 0;
@ -914,6 +923,93 @@ byte current_az_speed_voltage = 0;
DebugClass debug; DebugClass debug;
#if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_YWROBOT_I2C_DISPLAY)
K3NGdisplay k3ngdisplay(LCD_COLUMNS,LCD_ROWS,LCD_UPDATE_TIME);
#endif
#ifdef FEATURE_AZ_POSITION_HMC5883L
HMC5883L compass;
#endif //FEATURE_AZ_POSITION_HMC5883L
#ifdef FEATURE_EL_POSITION_ADXL345_USING_LOVE_ELECTRON_LIB
ADXL345 accel;
#endif //FEATURE_EL_POSITION_ADXL345_USING_LOVE_ELECTRON_LIB
#ifdef FEATURE_EL_POSITION_ADXL345_USING_ADAFRUIT_LIB
Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified(12345);
#endif //FEATURE_EL_POSITION_ADXL345_USING_ADAFRUIT_LIB
#if defined(FEATURE_EL_POSITION_ADAFRUIT_LSM303) || defined(FEATURE_AZ_POSITION_ADAFRUIT_LSM303)
Adafruit_LSM303 lsm;
#endif
#if defined(FEATURE_AZ_POSITION_POLOLU_LSM303) || defined(FEATURE_EL_POSITION_POLOLU_LSM303)
LSM303 compass;
LSM303::vector<int16_t> running_min = {32767, 32767, 32767}, running_max = {-32768, -32768, -32768};
char report[80];
#endif //FEATURE_AZ_POSITION_POLOLU_LSM303
#ifdef FEATURE_AZ_POSITION_HH12_AS5045_SSI
#include "hh12.h"
hh12 azimuth_hh12;
#endif //FEATURE_AZ_POSITION_HH12_AS5045_SSI
#ifdef FEATURE_EL_POSITION_HH12_AS5045_SSI
#include "hh12.h"
hh12 elevation_hh12;
#endif //FEATURE_EL_POSITION_HH12_AS5045_SSI
#ifdef FEATURE_GPS
TinyGPS gps;
#endif //FEATURE_GPS
#ifdef FEATURE_RTC_DS1307
RTC_DS1307 rtc;
#endif //FEATURE_RTC_DS1307
#ifdef FEATURE_RTC_PCF8583
PCF8583 rtc(0xA0);
#endif //FEATURE_RTC_PCF8583
#ifdef HARDWARE_EA4TX_ARS_USB
#undef LCD_COLUMNS
#undef LCD_ROWS
#define LCD_COLUMNS 16
#define LCD_ROWS 2
#endif //HARDWARE_EA4TX_ARS_USB
#ifdef HARDWARE_M0UPU
#undef LCD_ROWS
#define LCD_ROWS 2
#endif //HARDWARE_M0UPU
#ifdef FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER
#define AZ_A2_ENCODER_RESOLUTION 32767 /*36000*/
#define AZ_A2_ENCODER_ADDRESS 0x00
#define AZ_QUERY_FREQUENCY_MS 250
#define AZ_A2_ENCODER_MODE MODE_TWO_BYTE_POSITION /*|MODE_MULTITURN*/
#endif //FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER
#ifdef FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER
#define EL_A2_ENCODER_RESOLUTION 32767 /*36000*/
#define EL_A2_ENCODER_ADDRESS 0x00
#define EL_QUERY_FREQUENCY_MS 250
#define EL_A2_ENCODER_MODE MODE_MULTITURN /*|MODE_TWO_BYTE_POSITION*/
#endif //FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER
#if defined(FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER) || defined(FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER)
#include "sei_bus.h"
SEIbus SEIbus1(&Serial1,9600,pin_sei_bus_busy,pin_sei_bus_send_receive);
// (Serial Port,Baud Rate,Busy Pin,Send/Receive Pin)
#define SEI_BUS_COMMAND_TIMEOUT_MS 6000
#endif
//yyyyyyyyy //yyyyyyyyy
#include "rotator_clock_and_gps.h" #include "rotator_clock_and_gps.h"
@ -6133,7 +6229,7 @@ void initialize_pins(){
rotator(DEACTIVATE, CW); rotator(DEACTIVATE, CW);
rotator(DEACTIVATE, CCW); rotator(DEACTIVATE, CCW);
#ifndef FEATURE_AZ_POSITION_HMC5883L #if defined(FEATURE_AZ_POSITION_POTENTIOMETER)
pinModeEnhanced(rotator_analog_az, INPUT); pinModeEnhanced(rotator_analog_az, INPUT);
#endif #endif

View File

@ -81,7 +81,9 @@ float hh12::heading(){
} }
// end of entire clock cycle // 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
#ifdef DEBUG_HH12 #ifdef DEBUG_HH12
Serial.print("hh12: packed:"); Serial.print("hh12: packed:");

View File

@ -2,7 +2,7 @@
#ifndef K3NG_DISPLAY_H #ifndef K3NG_DISPLAY_H
#define K3NG_DISPLAY_H #define K3NG_DISPLAY_H
// K3NG_DISPLAY_LIBRARY_VERSION "1.0.2015090401" // K3NG_DISPLAY_LIBRARY_VERSION "1.0.2015092001"
#if defined(ARDUINO) && ARDUINO >= 100 #if defined(ARDUINO) && ARDUINO >= 100
@ -90,7 +90,9 @@ K3NGdisplay::K3NGdisplay(int _display_columns, int _display_rows, int _update_ti
void K3NGdisplay::initialize(){ void K3NGdisplay::initialize(){
lcd.begin(display_columns, display_rows); lcd.begin(display_columns, display_rows); // if you are getting an error on this line and do not have
// any of the LCD display features enabled, remove
// k3ngdisplay.h and k3ngdisplay.cpp from your ino directory
#ifdef FEATURE_YOURDUINO_I2C_LCD #ifdef FEATURE_YOURDUINO_I2C_LCD
lcd.setBacklightPin(BACKLIGHT_PIN, POSITIVE); lcd.setBacklightPin(BACKLIGHT_PIN, POSITIVE);

View File

@ -1,3 +1,5 @@
#ifndef _K3NGDISPLAY_H
#define _K3NGDISPLAY_H
#if defined(ARDUINO) && ARDUINO >= 100 #if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h" #include "Arduino.h"
@ -7,6 +9,10 @@
#include "rotator_hardware.h" #include "rotator_hardware.h"
#ifdef HARDWARE_EA4TX_ARS_USB #ifdef HARDWARE_EA4TX_ARS_USB
#include "rotator_features_ea4tx_ars_usb.h" #include "rotator_features_ea4tx_ars_usb.h"
#endif #endif
@ -41,7 +47,7 @@
#define K3NG_DISPLAY_LIBRARY_VERSION "1.0.2015090401" #define K3NG_DISPLAY_LIBRARY_VERSION "1.0.2015092001"
#define MAX_SCREEN_BUFFER_COLUMNS 20 #define MAX_SCREEN_BUFFER_COLUMNS 20
#define MAX_SCREEN_BUFFER_ROWS 4 #define MAX_SCREEN_BUFFER_ROWS 4
@ -113,4 +119,4 @@ private:
}; };
#endif //_K3NGDISPLAY_H

View File

@ -26,6 +26,7 @@
//#define LANGUAGE_ITALIAN //#define LANGUAGE_ITALIAN
//#define LANGUAGE_PORTUGUESE_BRASIL //#define LANGUAGE_PORTUGUESE_BRASIL
//#define LANGUAGE_GERMAN //#define LANGUAGE_GERMAN
//#define LANGUAGE_FRENCH
/* master and remote slave unit functionality */ /* master and remote slave unit functionality */
//#define FEATURE_REMOTE_UNIT_SLAVE // uncomment this to make this unit a remote unit controlled by a host unit //#define FEATURE_REMOTE_UNIT_SLAVE // uncomment this to make this unit a remote unit controlled by a host unit
@ -60,7 +61,7 @@
//#define FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER //#define FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER
// All displays require k3ngdisplay.h and k3ngdisplay.cpp in the ino directory! // All displays require k3ngdisplay.h and k3ngdisplay.cpp in the ino directory!
#define FEATURE_4_BIT_LCD_DISPLAY // Uncomment for classic 4 bit LCD display (most common) //#define FEATURE_4_BIT_LCD_DISPLAY // Uncomment for classic 4 bit LCD display (most common)
//#define FEATURE_ADAFRUIT_I2C_LCD //#define FEATURE_ADAFRUIT_I2C_LCD
//#define FEATURE_ADAFRUIT_BUTTONS // Uncomment this to use Adafruit I2C LCD buttons for manual AZ/EL instead of normal buttons //#define FEATURE_ADAFRUIT_BUTTONS // Uncomment this to use Adafruit I2C LCD buttons for manual AZ/EL instead of normal buttons
//#define FEATURE_YOURDUINO_I2C_LCD //#define FEATURE_YOURDUINO_I2C_LCD

View File

@ -268,3 +268,41 @@
#define ENE_STRING "ONO (ZL)" #define ENE_STRING "ONO (ZL)"
#define NNE_STRING "NNO (UA0)" #define NNE_STRING "NNO (UA0)"
#endif //LANGUAGE_GERMAN #endif //LANGUAGE_GERMAN
#ifdef LANGUAGE_FRENCH // contributed by Marc-Andre, VE2EVN
#define MOON_STRING "lune "
#define SUN_STRING "soleil "
#define AZ_TARGET_STRING "Az Cible "
#define EL_TARGET_STRING "Él Cible "
#define TARGET_STRING "Cible "
#define PARKING_STRING "Parcage"
#define PARKED_STRING "Garé"
#define UP_STRING "HAUSSE"
//#define UP_STRING "HAUT"
#define DOWN_STRING "BAISSE"
//#define DOWN_STRING "BAS"
#define CW_STRING "SH"
#define CCW_STRING "SAH"
#define AZIMUTH_STRING "Azimut "
#define AZ_STRING "Az"
#define AZ_SPACE_STRING "Az "
#define SPACE_EL_STRING " Él"
#define SPACE_EL_SPACE_STRING " Él "
#define GPS_STRING "GPS"
#define N_STRING "N"
#define W_STRING "O"
#define S_STRING "S"
#define E_STRING "E"
#define NW_STRING "NO"
#define SW_STRING "SO"
#define SE_STRING "SE"
#define NE_STRING "NE"
#define NNW_STRING "NNO"
#define WNW_STRING "ONO"
#define WSW_STRING "OSO"
#define SSW_STRING "SSO"
#define SSE_STRING "SSE"
#define ESE_STRING "ESE"
#define ENE_STRING "ENE"
#define NNE_STRING "NNE"
#endif //LANGUAGE_FRENCH

View File

@ -319,7 +319,7 @@ You can tweak these, but read the online documentation!
*/ */
/*
#if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_YWROBOT_I2C_DISPLAY) #if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_YWROBOT_I2C_DISPLAY)
K3NGdisplay k3ngdisplay(LCD_COLUMNS,LCD_ROWS,LCD_UPDATE_TIME); K3NGdisplay k3ngdisplay(LCD_COLUMNS,LCD_ROWS,LCD_UPDATE_TIME);
#endif #endif
@ -384,14 +384,14 @@ You can tweak these, but read the online documentation!
#define AZ_A2_ENCODER_RESOLUTION 32767 //36000 #define AZ_A2_ENCODER_RESOLUTION 32767 //36000
#define AZ_A2_ENCODER_ADDRESS 0x00 #define AZ_A2_ENCODER_ADDRESS 0x00
#define AZ_QUERY_FREQUENCY_MS 250 #define AZ_QUERY_FREQUENCY_MS 250
#define AZ_A2_ENCODER_MODE MODE_TWO_BYTE_POSITION/*|MODE_MULTITURN*/ #define AZ_A2_ENCODER_MODE MODE_TWO_BYTE_POSITION//|MODE_MULTITURN
#endif //FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER #endif //FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER
#ifdef FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER #ifdef FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER
#define EL_A2_ENCODER_RESOLUTION 32767 //36000 #define EL_A2_ENCODER_RESOLUTION 32767 //36000
#define EL_A2_ENCODER_ADDRESS 0x00 #define EL_A2_ENCODER_ADDRESS 0x00
#define EL_QUERY_FREQUENCY_MS 250 #define EL_QUERY_FREQUENCY_MS 250
#define EL_A2_ENCODER_MODE /*MODE_TWO_BYTE_POSITION|*/MODE_MULTITURN #define EL_A2_ENCODER_MODE MODE_MULTITURN//|MODE_TWO_BYTE_POSITION
#endif //FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER #endif //FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER
#if defined(FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER) || defined(FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER) #if defined(FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER) || defined(FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER)
@ -400,4 +400,4 @@ You can tweak these, but read the online documentation!
// (Serial Port,Baud Rate,Busy Pin,Send/Receive Pin) // (Serial Port,Baud Rate,Busy Pin,Send/Receive Pin)
#define SEI_BUS_COMMAND_TIMEOUT_MS 6000 #define SEI_BUS_COMMAND_TIMEOUT_MS 6000
#endif #endif
*/

View File

@ -313,7 +313,7 @@ You can tweak these, but read the online documentation!
*/ */
/*
#if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_YWROBOT_I2C_DISPLAY) #if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_YWROBOT_I2C_DISPLAY)
K3NGdisplay k3ngdisplay(LCD_COLUMNS,LCD_ROWS,LCD_UPDATE_TIME); K3NGdisplay k3ngdisplay(LCD_COLUMNS,LCD_ROWS,LCD_UPDATE_TIME);
@ -374,4 +374,4 @@ You can tweak these, but read the online documentation!
#undef LCD_ROWS #undef LCD_ROWS
#define LCD_ROWS 2 #define LCD_ROWS 2
#endif //HARDWARE_M0UPU #endif //HARDWARE_M0UPU
*/

View File

@ -313,6 +313,8 @@ You can tweak these, but read the online documentation!
*/ */
/*
#if !defined(UNDER_DEVELOPMENT_K3NGDISPLAY_LIBRARY) #if !defined(UNDER_DEVELOPMENT_K3NGDISPLAY_LIBRARY)
#if defined(FEATURE_4_BIT_LCD_DISPLAY) #if defined(FEATURE_4_BIT_LCD_DISPLAY)
LiquidCrystal lcd(lcd_4_bit_rs_pin, lcd_4_bit_enable_pin, lcd_4_bit_d4_pin, lcd_4_bit_d5_pin, lcd_4_bit_d6_pin, lcd_4_bit_d7_pin); LiquidCrystal lcd(lcd_4_bit_rs_pin, lcd_4_bit_enable_pin, lcd_4_bit_d4_pin, lcd_4_bit_d5_pin, lcd_4_bit_d6_pin, lcd_4_bit_d7_pin);
@ -392,4 +394,4 @@ PCF8583 rtc(0xA0);
#undef LCD_ROWS #undef LCD_ROWS
#define LCD_ROWS 2 #define LCD_ROWS 2
#endif //HARDWARE_M0UPU #endif //HARDWARE_M0UPU
*/

View File

@ -326,84 +326,84 @@ You can tweak these, but read the online documentation!
*/ */
#if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_YWROBOT_I2C_DISPLAY) // #if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_YWROBOT_I2C_DISPLAY)
K3NGdisplay k3ngdisplay(LCD_COLUMNS,LCD_ROWS,LCD_UPDATE_TIME); // K3NGdisplay k3ngdisplay(LCD_COLUMNS,LCD_ROWS,LCD_UPDATE_TIME);
#endif // #endif
#ifdef FEATURE_AZ_POSITION_HMC5883L // #ifdef FEATURE_AZ_POSITION_HMC5883L
HMC5883L compass; // HMC5883L compass;
#endif //FEATURE_AZ_POSITION_HMC5883L // #endif //FEATURE_AZ_POSITION_HMC5883L
#ifdef FEATURE_EL_POSITION_ADXL345_USING_LOVE_ELECTRON_LIB // #ifdef FEATURE_EL_POSITION_ADXL345_USING_LOVE_ELECTRON_LIB
ADXL345 accel; // ADXL345 accel;
#endif //FEATURE_EL_POSITION_ADXL345_USING_LOVE_ELECTRON_LIB // #endif //FEATURE_EL_POSITION_ADXL345_USING_LOVE_ELECTRON_LIB
#ifdef FEATURE_EL_POSITION_ADXL345_USING_ADAFRUIT_LIB // #ifdef FEATURE_EL_POSITION_ADXL345_USING_ADAFRUIT_LIB
Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified(12345); // Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified(12345);
#endif //FEATURE_EL_POSITION_ADXL345_USING_ADAFRUIT_LIB // #endif //FEATURE_EL_POSITION_ADXL345_USING_ADAFRUIT_LIB
#if defined(FEATURE_EL_POSITION_ADAFRUIT_LSM303) || defined(FEATURE_AZ_POSITION_ADAFRUIT_LSM303) // #if defined(FEATURE_EL_POSITION_ADAFRUIT_LSM303) || defined(FEATURE_AZ_POSITION_ADAFRUIT_LSM303)
Adafruit_LSM303 lsm; // Adafruit_LSM303 lsm;
#endif // #endif
#if defined(FEATURE_AZ_POSITION_POLOLU_LSM303) || defined(FEATURE_EL_POSITION_POLOLU_LSM303) // #if defined(FEATURE_AZ_POSITION_POLOLU_LSM303) || defined(FEATURE_EL_POSITION_POLOLU_LSM303)
LSM303 compass; // LSM303 compass;
LSM303::vector<int16_t> running_min = {32767, 32767, 32767}, running_max = {-32768, -32768, -32768}; // LSM303::vector<int16_t> running_min = {32767, 32767, 32767}, running_max = {-32768, -32768, -32768};
char report[80]; // char report[80];
#endif //FEATURE_AZ_POSITION_POLOLU_LSM303 // #endif //FEATURE_AZ_POSITION_POLOLU_LSM303
#ifdef FEATURE_AZ_POSITION_HH12_AS5045_SSI // #ifdef FEATURE_AZ_POSITION_HH12_AS5045_SSI
#include "hh12.h" // #include "hh12.h"
hh12 azimuth_hh12; // hh12 azimuth_hh12;
#endif //FEATURE_AZ_POSITION_HH12_AS5045_SSI // #endif //FEATURE_AZ_POSITION_HH12_AS5045_SSI
#ifdef FEATURE_EL_POSITION_HH12_AS5045_SSI // #ifdef FEATURE_EL_POSITION_HH12_AS5045_SSI
#include "hh12.h" // #include "hh12.h"
hh12 elevation_hh12; // hh12 elevation_hh12;
#endif //FEATURE_EL_POSITION_HH12_AS5045_SSI // #endif //FEATURE_EL_POSITION_HH12_AS5045_SSI
#ifdef FEATURE_GPS // #ifdef FEATURE_GPS
TinyGPS gps; // TinyGPS gps;
#endif //FEATURE_GPS // #endif //FEATURE_GPS
#ifdef FEATURE_RTC_DS1307 // #ifdef FEATURE_RTC_DS1307
RTC_DS1307 rtc; // RTC_DS1307 rtc;
#endif //FEATURE_RTC_DS1307 // #endif //FEATURE_RTC_DS1307
#ifdef FEATURE_RTC_PCF8583 // #ifdef FEATURE_RTC_PCF8583
PCF8583 rtc(0xA0); // PCF8583 rtc(0xA0);
#endif //FEATURE_RTC_PCF8583 // #endif //FEATURE_RTC_PCF8583
#ifdef HARDWARE_EA4TX_ARS_USB // #ifdef HARDWARE_EA4TX_ARS_USB
#undef LCD_COLUMNS // #undef LCD_COLUMNS
#undef LCD_ROWS // #undef LCD_ROWS
#define LCD_COLUMNS 16 // #define LCD_COLUMNS 16
#define LCD_ROWS 2 // #define LCD_ROWS 2
#endif //HARDWARE_EA4TX_ARS_USB // #endif //HARDWARE_EA4TX_ARS_USB
#ifdef HARDWARE_M0UPU // #ifdef HARDWARE_M0UPU
#undef LCD_ROWS // #undef LCD_ROWS
#define LCD_ROWS 2 // #define LCD_ROWS 2
#endif //HARDWARE_M0UPU // #endif //HARDWARE_M0UPU
#ifdef FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER // #ifdef FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER
#define AZ_A2_ENCODER_RESOLUTION 32767 //36000 // #define AZ_A2_ENCODER_RESOLUTION 32767 //36000
#define AZ_A2_ENCODER_ADDRESS 0x00 // #define AZ_A2_ENCODER_ADDRESS 0x00
#define AZ_QUERY_FREQUENCY_MS 250 // #define AZ_QUERY_FREQUENCY_MS 250
#define AZ_A2_ENCODER_MODE MODE_TWO_BYTE_POSITION/*|MODE_MULTITURN*/ // #define AZ_A2_ENCODER_MODE MODE_TWO_BYTE_POSITION/*|MODE_MULTITURN*/
#endif //FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER // #endif //FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER
#ifdef FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER // #ifdef FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER
#define EL_A2_ENCODER_RESOLUTION 32767 //36000 // #define EL_A2_ENCODER_RESOLUTION 32767 //36000
#define EL_A2_ENCODER_ADDRESS 0x00 // #define EL_A2_ENCODER_ADDRESS 0x00
#define EL_QUERY_FREQUENCY_MS 250 // #define EL_QUERY_FREQUENCY_MS 250
#define EL_A2_ENCODER_MODE /*MODE_TWO_BYTE_POSITION|*/MODE_MULTITURN // #define EL_A2_ENCODER_MODE /*MODE_TWO_BYTE_POSITION|*/MODE_MULTITURN
#endif //FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER // #endif //FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER
#if defined(FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER) || defined(FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER) // #if defined(FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER) || defined(FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER)
#include "sei_bus.h" // #include "sei_bus.h"
SEIbus SEIbus1(&Serial1,9600,pin_sei_bus_busy,pin_sei_bus_send_receive); // SEIbus SEIbus1(&Serial1,9600,pin_sei_bus_busy,pin_sei_bus_send_receive);
// (Serial Port,Baud Rate,Busy Pin,Send/Receive Pin) // // (Serial Port,Baud Rate,Busy Pin,Send/Receive Pin)
#define SEI_BUS_COMMAND_TIMEOUT_MS 6000 // #define SEI_BUS_COMMAND_TIMEOUT_MS 6000
#endif // #endif

View File

@ -314,6 +314,7 @@ You can tweak these, but read the online documentation!
*/ */
/*
#if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_YWROBOT_I2C_DISPLAY) #if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_YWROBOT_I2C_DISPLAY)
K3NGdisplay k3ngdisplay(LCD_COLUMNS,LCD_ROWS,LCD_UPDATE_TIME); K3NGdisplay k3ngdisplay(LCD_COLUMNS,LCD_ROWS,LCD_UPDATE_TIME);
@ -379,14 +380,14 @@ You can tweak these, but read the online documentation!
#define AZ_A2_ENCODER_RESOLUTION 32767 //36000 #define AZ_A2_ENCODER_RESOLUTION 32767 //36000
#define AZ_A2_ENCODER_ADDRESS 0x00 #define AZ_A2_ENCODER_ADDRESS 0x00
#define AZ_QUERY_FREQUENCY_MS 250 #define AZ_QUERY_FREQUENCY_MS 250
#define AZ_A2_ENCODER_MODE MODE_TWO_BYTE_POSITION/*|MODE_MULTITURN*/ #define AZ_A2_ENCODER_MODE MODE_TWO_BYTE_POSITION//|MODE_MULTITURN
#endif //FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER #endif //FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER
#ifdef FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER #ifdef FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER
#define EL_A2_ENCODER_RESOLUTION 32767 //36000 #define EL_A2_ENCODER_RESOLUTION 32767 //36000
#define EL_A2_ENCODER_ADDRESS 0x00 #define EL_A2_ENCODER_ADDRESS 0x00
#define EL_QUERY_FREQUENCY_MS 250 #define EL_QUERY_FREQUENCY_MS 250
#define EL_A2_ENCODER_MODE /*MODE_TWO_BYTE_POSITION|*/MODE_MULTITURN #define EL_A2_ENCODER_MODE MODE_MULTITURN//|MODE_TWO_BYTE_POSITION
#endif //FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER #endif //FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER
#if defined(FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER) || defined(FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER) #if defined(FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER) || defined(FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER)
@ -395,3 +396,4 @@ You can tweak these, but read the online documentation!
// (Serial Port,Baud Rate,Busy Pin,Send/Receive Pin) // (Serial Port,Baud Rate,Busy Pin,Send/Receive Pin)
#define SEI_BUS_COMMAND_TIMEOUT_MS 6000 #define SEI_BUS_COMMAND_TIMEOUT_MS 6000
#endif #endif
*/