2020.06.26.02

In rotator_hardware.h, got rid of serial port class definitions for the GPS, GPS mirror, and remote serial ports, and have one define CONTROL_PORT_SERIAL_PORT_CLASS for the control port (usually the Serial port)
      Arduino Leonardo, Micro, and Yún users will need to change CONTROL_PORT_SERIAL_PORT_CLASS in rotator_hardware.h if not using the Serial port as the control port
      Changed and reorganize serial port mappins in rotator_settings*.h files
This commit is contained in:
Anthony Good 2020-06-26 08:52:00 -04:00
parent 8f65f1b97f
commit 0528223277
9 changed files with 192 additions and 206 deletions

View File

@ -526,6 +526,11 @@
2020.06.26.01
Removed errant HEADING_MULTIPLIER from PARK settings in settings files (Thanks, Adam VK4GHZ )
2020.06.26.02
In rotator_hardware.h, got rid of serial port class definitions for the GPS, GPS mirror, and remote serial ports, and have one define CONTROL_PORT_SERIAL_PORT_CLASS for the control port (usually the Serial port)
Arduino Leonardo, Micro, and Yún users will need to change CONTROL_PORT_SERIAL_PORT_CLASS in rotator_hardware.h if not using the Serial port as the control port
Changed and reorganize serial port mappins in rotator_settings*.h files
All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc.
Anything rotator_*.* should be in the ino directory!
@ -538,7 +543,7 @@
*/
#define CODE_VERSION "2020.06.26.01"
#define CODE_VERSION "2020.06.26.02"
#include <avr/pgmspace.h>
#include <EEPROM.h>
@ -948,34 +953,34 @@ byte current_az_speed_voltage = 0;
#endif
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(CONTROL_PROTOCOL_EMULATION) || defined(FEATURE_CLOCK) || defined(UNDER_DEVELOPMENT_REMOTE_UNIT_COMMANDS)
SERIAL_PORT_CLASS * control_port;
CONTROL_PORT_SERIAL_PORT_CLASS * control_port;
#endif
#if !defined(ARDUINO_AVR_MICRO) && !defined(ARDUINO_AVR_LEONARDO) && !defined(ARDUINO_AVR_YUN)
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
SERIAL_PORT_CLASS * remote_unit_port;
#endif
#else
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
SERIAL_PORT_CLASS_SECONDARY * remote_unit_port;
#endif
#endif
// #if !defined(ARDUINO_AVR_MICRO) && !defined(ARDUINO_AVR_LEONARDO) && !defined(ARDUINO_AVR_YUN)
// #if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
// REMOTE_PORT_SERIAL_PORT_CLASS * remote_unit_port;
// #endif
// #else
// #if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
// REMOTE_PORT_SERIAL_PORT_CLASS * remote_unit_port;
// #endif
// #endif
#if !defined(ARDUINO_AVR_MICRO) && !defined(ARDUINO_AVR_LEONARDO) && !defined(ARDUINO_AVR_YUN)
#if defined(FEATURE_GPS)
SERIAL_PORT_CLASS * gps_port;
#ifdef GPS_MIRROR_PORT
SERIAL_PORT_CLASS * (gps_mirror_port);
#endif //GPS_MIRROR_PORT
#endif //defined(FEATURE_GPS)
#else
#if defined(FEATURE_GPS)
SERIAL_PORT_CLASS_SECONDARY * gps_port;
#ifdef GPS_MIRROR_PORT
SERIAL_PORT_CLASS_SECONDARY * (gps_mirror_port);
#endif //GPS_MIRROR_PORT
#endif //defined(FEATURE_GPS)
#endif
// #if !defined(ARDUINO_AVR_MICRO) && !defined(ARDUINO_AVR_LEONARDO) && !defined(ARDUINO_AVR_YUN)
// #if defined(FEATURE_GPS)
// GPS_PORT_SERIAL_PORT_CLASS * gps_port;
// #ifdef GPS_MIRROR_PORT
// GPS_MIRROR_PORT_SERIAL_PORT_CLASS * gps_mirror_port;
// #endif //GPS_MIRROR_PORT
// #endif //defined(FEATURE_GPS)
// #else
// #if defined(FEATURE_GPS)
// GPS_PORT_SERIAL_PORT_CLASS * gps_port;
// #ifdef GPS_MIRROR_PORT
// GPS_MIRROR_PORT_SERIAL_PORT_CLASS * gps_mirror_port;
// #endif //GPS_MIRROR_PORT
// #endif //defined(FEATURE_GPS)
// #endif
#if defined(FEATURE_MOON_TRACKING) || defined(FEATURE_SUN_TRACKING) || defined(FEATURE_CLOCK) || defined(FEATURE_GPS) || defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(OPTION_DISPLAY_ALT_HHMM_CLOCK_AND_MAIDENHEAD) || defined(OPTION_DISPLAY_CONSTANT_HHMMSS_CLOCK_AND_MAIDENHEAD)
@ -2694,7 +2699,7 @@ void service_remote_unit_serial_buffer(){
switch (control_port_buffer[2] - 48) {
case 0: control_port->write(control_port_buffer[x]); break;
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
case 1: remote_unit_port->write(control_port_buffer[x]); break;
case 1: REMOTE_PORT.write(control_port_buffer[x]); break;
#endif
}
}
@ -2768,7 +2773,7 @@ void service_remote_unit_serial_buffer(){
switch (control_port_buffer[2]) {
case '0': control_port->write(control_port_buffer[3]); command_good = 1; break;
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
case '1': remote_unit_port->write(control_port_buffer[3]); command_good = 1; break;
case '1': REMOTE_PORT.write(control_port_buffer[3]); command_good = 1; break;
#endif
}
}
@ -3216,8 +3221,8 @@ void check_serial(){
// remote unit port servicing
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
if (remote_unit_port->available()) {
incoming_serial_byte = remote_unit_port->read();
if (REMOTE_PORT.available()) {
incoming_serial_byte = REMOTE_PORT.read();
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
// if (serial_read_event_flag[1]) {
@ -3253,10 +3258,10 @@ void check_serial(){
} else {
#if defined(OPTION_DONT_READ_GPS_PORT_AS_OFTEN)
if (gps_port->available()) {
gps_port_read = gps_port->read();
if (GPS_PORT.available()) {
gps_port_read = GPS_PORT.read();
#ifdef GPS_MIRROR_PORT
gps_mirror_port->write(gps_port_read);
GPS_MIRROR_PORT.write(gps_port_read);
#endif //GPS_MIRROR_PORT
#if defined(DEBUG_GPS_SERIAL)
debug.write(gps_port_read);
@ -3365,10 +3370,10 @@ void check_serial(){
#endif // OPTION_GPS_EXCLUDE_MISSING_LF_CR_HANDLING
}
#else //OPTION_DONT_READ_GPS_PORT_AS_OFTEN
while ((gps_port->available()) /*&& (!gps_data_available)*/) {
gps_port_read = gps_port->read();
while ((GPS_PORT.available()) /*&& (!gps_data_available)*/) {
gps_port_read = GPS_PORT.read();
#ifdef GPS_MIRROR_PORT
gps_mirror_port->write(gps_port_read);
GPS_MIRROR_PORT.write(gps_port_read);
#endif //GPS_MIRROR_PORT
#if defined(DEBUG_GPS_SERIAL)
debug.write(gps_port_read);
@ -3407,8 +3412,8 @@ void check_serial(){
#endif // FEATURE_GPS
#if defined(GPS_MIRROR_PORT) && defined(FEATURE_GPS)
if (gps_mirror_port->available()) {
gps_port->write(gps_mirror_port->read());
if (GPS_MIRROR_PORT.available()) {
GPS_PORT.write(GPS_MIRROR_PORT.read());
}
#endif //defined(GPS_MIRROR_PORT) && defined(FEATURE_GPS)
@ -8955,16 +8960,16 @@ void initialize_serial(){
#endif // FEATURE_REMOTE_UNIT_SLAVE
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
remote_unit_port = REMOTE_PORT_MAPPED_TO;
remote_unit_port->begin(REMOTE_UNIT_PORT_BAUD_RATE);
//remote_unit_port = REMOTE_PORT_MAPPED_TO;
REMOTE_PORT.begin(REMOTE_UNIT_PORT_BAUD_RATE);
#endif
#ifdef FEATURE_GPS
gps_port = GPS_PORT_MAPPED_TO;
gps_port->begin(GPS_PORT_BAUD_RATE);
//gps_port = GPS_PORT_MAPPED_TO;
GPS_PORT.begin(GPS_PORT_BAUD_RATE);
#ifdef GPS_MIRROR_PORT
gps_mirror_port = GPS_MIRROR_PORT;
gps_mirror_port->begin(GPS_MIRROR_PORT_BAUD_RATE);
//gps_mirror_port = GPS_MIRROR_PORT;
GPS_MIRROR_PORT.begin(GPS_MIRROR_PORT_BAUD_RATE);
#endif //GPS_MIRROR_PORT
#endif //FEATURE_GPS
@ -10641,7 +10646,7 @@ byte submit_remote_command(byte remote_command_to_send, byte parm1, int parm2){
switch (remote_command_to_send) {
case REMOTE_UNIT_CL_COMMAND:
#ifdef FEATURE_MASTER_WITH_SERIAL_SLAVE
remote_unit_port->println("CL");
REMOTE_PORT.println("CL");
#endif //FEATURE_MASTER_WITH_SERIAL_SLAVE
#ifdef FEATURE_MASTER_WITH_ETHERNET_SLAVE
ethernet_slave_link_send("CL");
@ -10655,7 +10660,7 @@ byte submit_remote_command(byte remote_command_to_send, byte parm1, int parm2){
case REMOTE_UNIT_AZ_COMMAND:
#ifdef FEATURE_MASTER_WITH_SERIAL_SLAVE
remote_unit_port->println("AZ");
REMOTE_PORT.println("AZ");
#endif //FEATURE_MASTER_WITH_SERIAL_SLAVE
#ifdef FEATURE_MASTER_WITH_ETHERNET_SLAVE
ethernet_slave_link_send("AZ");
@ -10668,7 +10673,7 @@ byte submit_remote_command(byte remote_command_to_send, byte parm1, int parm2){
case REMOTE_UNIT_EL_COMMAND:
#ifdef FEATURE_MASTER_WITH_SERIAL_SLAVE
remote_unit_port->println("EL");
REMOTE_PORT.println("EL");
#endif //FEATURE_MASTER_WITH_SERIAL_SLAVE
#ifdef FEATURE_MASTER_WITH_ETHERNET_SLAVE
ethernet_slave_link_send("EL");
@ -10683,34 +10688,34 @@ byte submit_remote_command(byte remote_command_to_send, byte parm1, int parm2){
case REMOTE_UNIT_AW_COMMAND:
#ifdef FEATURE_MASTER_WITH_SERIAL_SLAVE
take_care_of_pending_remote_command();
remote_unit_port->print("AW");
REMOTE_PORT.print("AW");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("AW");}
#endif
parm1 = parm1 - 100; // pin number
if (parm1 < 10) {
remote_unit_port->print("0");
REMOTE_PORT.print("0");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("0");}
#endif
}
remote_unit_port->print(parm1);
REMOTE_PORT.print(parm1);
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print(parm1);}
#endif
if (parm2 < 10) {
remote_unit_port->print("0");
REMOTE_PORT.print("0");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("0");}
#endif
}
if (parm2 < 100) {
remote_unit_port->print("0");
REMOTE_PORT.print("0");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("0");}
#endif
}
remote_unit_port->println(parm2);
REMOTE_PORT.println(parm2);
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->println(parm2);}
#endif
@ -10735,29 +10740,29 @@ byte submit_remote_command(byte remote_command_to_send, byte parm1, int parm2){
case REMOTE_UNIT_DHL_COMMAND:
#ifdef FEATURE_MASTER_WITH_SERIAL_SLAVE
take_care_of_pending_remote_command();
remote_unit_port->print("D");
REMOTE_PORT.print("D");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("D");}
#endif
if (parm2 == HIGH) {
remote_unit_port->print("H");
REMOTE_PORT.print("H");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("H");}
#endif
} else {
remote_unit_port->print("L");
REMOTE_PORT.print("L");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("L");}
#endif
}
parm1 = parm1 - 100;
if (parm1 < 10) {
remote_unit_port->print("0");
REMOTE_PORT.print("0");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("0");}
#endif
}
remote_unit_port->println(parm1);
REMOTE_PORT.println(parm1);
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->println(parm1);}
#endif
@ -10782,28 +10787,28 @@ byte submit_remote_command(byte remote_command_to_send, byte parm1, int parm2){
case REMOTE_UNIT_DOI_COMMAND:
#ifdef FEATURE_MASTER_WITH_SERIAL_SLAVE
take_care_of_pending_remote_command();
remote_unit_port->print("D");
REMOTE_PORT.print("D");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("D");}
#endif
if (parm2 == OUTPUT) {
remote_unit_port->print("O");
REMOTE_PORT.print("O");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("O");}
#endif
} else {
remote_unit_port->print("I");}
REMOTE_PORT.print("I");}
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("I");}
#endif
parm1 = parm1 - 100;
if (parm1 < 10) {
remote_unit_port->print("0");
REMOTE_PORT.print("0");
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->print("0");}
#endif
}
remote_unit_port->println(parm1);
REMOTE_PORT.println(parm1);
#if defined(FEATURE_REMOTE_UNIT_SLAVE) || defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION)
if (remote_port_tx_sniff) {control_port->println(parm1);}
#endif
@ -10827,7 +10832,7 @@ byte submit_remote_command(byte remote_command_to_send, byte parm1, int parm2){
case REMOTE_UNIT_GS_COMMAND:
#ifdef FEATURE_MASTER_WITH_SERIAL_SLAVE
remote_unit_port->println("GS");
REMOTE_PORT.println("GS");
#endif //FEATURE_MASTER_WITH_SERIAL_SLAVE
#ifdef FEATURE_MASTER_WITH_ETHERNET_SLAVE
ethernet_slave_link_send("GS");
@ -10840,7 +10845,7 @@ byte submit_remote_command(byte remote_command_to_send, byte parm1, int parm2){
case REMOTE_UNIT_RC_COMMAND:
#ifdef FEATURE_MASTER_WITH_SERIAL_SLAVE
remote_unit_port->println("RC");
REMOTE_PORT.println("RC");
#endif //FEATURE_MASTER_WITH_SERIAL_SLAVE
#ifdef FEATURE_MASTER_WITH_ETHERNET_SLAVE
ethernet_slave_link_send("RC");
@ -11800,11 +11805,11 @@ void port_flush(){
#endif //CONTROL_PORT_MAPPED_TO
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
remote_unit_port->flush();
REMOTE_PORT.flush();
#endif
#if defined(GPS_PORT_MAPPED_TO) && defined(FEATURE_GPS)
gps_port->flush();
GPS_PORT.flush();
#endif //defined(GPS_PORT_MAPPED_TO) && defined(FEATURE_GPS)
@ -13166,7 +13171,7 @@ byte process_backslash_command(byte input_buffer[], int input_buffer_index, byte
#endif
for (int x = 2; x < input_buffer_index; x++) {
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
remote_unit_port->write(input_buffer[x]);
REMOTE_PORT.write(input_buffer[x]);
#endif
#if defined(FEATURE_MASTER_WITH_ETHERNET_SLAVE)
ethernetslavelinkclient0.write(input_buffer[x]);
@ -13176,7 +13181,7 @@ byte process_backslash_command(byte input_buffer[], int input_buffer_index, byte
}
}
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
remote_unit_port->write(13);
REMOTE_PORT.write(13);
#endif
#if defined(FEATURE_MASTER_WITH_ETHERNET_SLAVE)
ethernetslavelinkclient0.write(13);
@ -14272,7 +14277,7 @@ void process_remote_slave_command(byte * slave_command_buffer, int slave_command
switch (slave_command_buffer[2] - 48) {
case 0: control_port->write(slave_command_buffer[x]); break;
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
case 1: remote_unit_port->write(slave_command_buffer[x]); break;
case 1: REMOTE_PORT.write(slave_command_buffer[x]); break;
#endif
}
}
@ -14384,7 +14389,7 @@ void process_remote_slave_command(byte * slave_command_buffer, int slave_command
switch (slave_command_buffer[2]) {
case '0': control_port->write(slave_command_buffer[3]); command_good = 1; break;
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE)
case '1': remote_unit_port->write(slave_command_buffer[3]); command_good = 1; break;
case '1': REMOTE_PORT.write(slave_command_buffer[3]); command_good = 1; break;
#endif
}
}

View File

@ -29,22 +29,6 @@
#include "rotator_hardware.h"
// Serial port class definitions for various devices
// #if defined(ARDUINO_MAPLE_MINI)
// #define SERIAL_PORT_CLASS USBSerial
// #elif defined(ARDUINO_AVR_PROMICRO) || defined(ARDUINO_AVR_LEONARDO) || defined(ARDUINO_AVR_MICRO) || defined(ARDUINO_AVR_YUN) || defined(ARDUINO_AVR_ESPLORA) || defined(ARDUINO_AVR_LILYPAD_USB) || defined(ARDUINO_AVR_ROBOT_CONTROL) || defined(ARDUINO_AVR_ROBOT_MOTOR) || defined(ARDUINO_AVR_LEONARDO_ETH)
// #define SERIAL_PORT_CLASS Serial_
// #elif defined(TEENSYDUINO)
// #define SERIAL_PORT_CLASS usb_serial_class
// #else
// #define SERIAL_PORT_CLASS HardwareSerial
// #endif
// #ifdef FEATURE_ETHERNET
// #include <SPI.h>
// #include <Ethernet.h>
// #endif
class DebugClass
{
@ -75,11 +59,7 @@ class DebugClass
extern uint8_t debug_mode;
extern SERIAL_PORT_CLASS * control_port;
// #ifdef FEATURE_ETHERNET
// extern EthernetClient ethernetclient0;
// #endif
extern CONTROL_PORT_SERIAL_PORT_CLASS * control_port;
#endif //_ROTATOR_DEBUG_h

View File

@ -2,122 +2,116 @@
/* ---------------------- dependency checking - don't touch this unless you know what you are doing ---------------------*/
#if defined(FEATURE_YAESU_EMULATION) && defined(FEATURE_EASYCOM_EMULATION)
#error "You can't activate both FEATURE_YAESU_EMULATION and FEATURE_EASYCOM_EMULATION!"
#error "You can't activate both FEATURE_YAESU_EMULATION and FEATURE_EASYCOM_EMULATION!"
#endif
#if defined(FEATURE_YAESU_EMULATION) && defined(FEATURE_DCU_1_EMULATION)
#error "You can't activate both FEATURE_YAESU_EMULATION and FEATURE_DCU_1_EMULATION!"
#error "You can't activate both FEATURE_YAESU_EMULATION and FEATURE_DCU_1_EMULATION!"
#endif
#if defined(FEATURE_DCU_1_EMULATION) && defined(FEATURE_EASYCOM_EMULATION)
#error "You can't activate both FEATURE_DCU_1_EMULATION and FEATURE_EASYCOM_EMULATION!"
#error "You can't activate both FEATURE_DCU_1_EMULATION and FEATURE_EASYCOM_EMULATION!"
#endif
#if defined(FEATURE_DCU_1_EMULATION) && defined(FEATURE_ELEVATION_CONTROL)
#error "FEATURE_ELEVATION_CONTROL isn't supported with FEATURE_DCU_1_EMULATION"
#error "FEATURE_ELEVATION_CONTROL isn't supported with FEATURE_DCU_1_EMULATION"
#endif
#if (defined(FEATURE_EL_POSITION_GET_FROM_REMOTE_UNIT) || defined(FEATURE_AZ_POSITION_GET_FROM_REMOTE_UNIT)) && (!defined(FEATURE_MASTER_WITH_SERIAL_SLAVE) && !defined(FEATURE_MASTER_WITH_ETHERNET_SLAVE))
#error "You must activate FEATURE_MASTER_WITH_SERIAL_SLAVE or FEATURE_MASTER_WITH_ETHERNET_SLAVE when using FEATURE_AZ_POSITION_GET_FROM_REMOTE_UNIT or FEATURE_EL_POSITION_GET_FROM_REMOTE_UNIT"
#error "You must activate FEATURE_MASTER_WITH_SERIAL_SLAVE or FEATURE_MASTER_WITH_ETHERNET_SLAVE when using FEATURE_AZ_POSITION_GET_FROM_REMOTE_UNIT or FEATURE_EL_POSITION_GET_FROM_REMOTE_UNIT"
#endif
#if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE) && defined(FEATURE_MASTER_WITH_ETHERNET_SLAVE)
#error "You cannot active both FEATURE_MASTER_WITH_SERIAL_SLAVE and FEATURE_MASTER_WITH_ETHERNET_SLAVE"
#error "You cannot active both FEATURE_MASTER_WITH_SERIAL_SLAVE and FEATURE_MASTER_WITH_ETHERNET_SLAVE"
#endif
#if defined(FEATURE_EL_POSITION_PULSE_INPUT) && !defined(FEATURE_ELEVATION_CONTROL)
#undef FEATURE_EL_POSITION_PULSE_INPUT
#undef FEATURE_EL_POSITION_PULSE_INPUT
#endif
#if defined(FEATURE_REMOTE_UNIT_SLAVE) && (defined(FEATURE_MASTER_WITH_SERIAL_SLAVE) || defined(FEATURE_MASTER_WITH_ETHERNET_SLAVE))
#error "You cannot make this unit be both a master and a slave"
#error "You cannot make this unit be both a master and a slave"
#endif
#if defined(FEATURE_AZ_POSITION_GET_FROM_REMOTE_UNIT) && (defined(FEATURE_AZ_POSITION_POTENTIOMETER)||defined(FEATURE_AZ_POSITION_ROTARY_ENCODER)||defined(FEATURE_AZ_POSITION_PULSE_INPUT)||defined(FEATURE_AZ_POSITION_HMC5883L)||defined(FEATURE_AZ_POSITION_INCREMENTAL_ENCODER))
#error "You cannot get AZ position from remote unit and have a local azimuth sensor defined"
#error "You cannot get AZ position from remote unit and have a local azimuth sensor defined"
#endif
#if defined(FEATURE_EL_POSITION_GET_FROM_REMOTE_UNIT) && (defined(FEATURE_EL_POSITION_POTENTIOMETER)||defined(FEATURE_EL_POSITION_ROTARY_ENCODER)||defined(FEATURE_EL_POSITION_PULSE_INPUT)||defined(FEATURE_EL_POSITION_ADXL345_USING_LOVE_ELECTRON_LIB)||defined(FEATURE_EL_POSITION_ADXL345_USING_ADAFRUIT_LIB)||defined(FEATURE_EL_POSITION_INCREMENTAL_ENCODER))
#error "You cannot get EL position from remote unit and have a local elevation sensor defined"
#error "You cannot get EL position from remote unit and have a local elevation sensor defined"
#endif
#if (defined(FEATURE_EL_POSITION_ADXL345_USING_LOVE_ELECTRON_LIB) && defined(FEATURE_EL_POSITION_ADXL345_USING_ADAFRUIT_LIB))
#error "You must select only one one library for the ADXL345"
#error "You must select only one one library for the ADXL345"
#endif
#if defined(FEATURE_REMOTE_UNIT_SLAVE) && defined(FEATURE_YAESU_EMULATION)
#error "You must turn off FEATURE_YAESU_EMULATION if using FEATURE_REMOTE_UNIT_SLAVE"
#error "You must turn off FEATURE_YAESU_EMULATION if using FEATURE_REMOTE_UNIT_SLAVE"
#endif
#if defined(FEATURE_REMOTE_UNIT_SLAVE) && defined(FEATURE_EASYCOM_EMULATION)
#error "You must turn off FEATURE_EASYCOM_EMULATION if using FEATURE_REMOTE_UNIT_SLAVE"
#error "You must turn off FEATURE_EASYCOM_EMULATION if using FEATURE_REMOTE_UNIT_SLAVE"
#endif
#if !defined(FEATURE_ELEVATION_CONTROL) && defined(FEATURE_EL_PRESET_ENCODER)
#undef FEATURE_EL_PRESET_ENCODER
#undef FEATURE_EL_PRESET_ENCODER
#endif
#if !defined(FEATURE_AZ_POSITION_POTENTIOMETER) && !defined(FEATURE_AZ_POSITION_ROTARY_ENCODER) && !defined(FEATURE_AZ_POSITION_PULSE_INPUT) && !defined(FEATURE_AZ_POSITION_GET_FROM_REMOTE_UNIT) && !defined(FEATURE_AZ_POSITION_HMC5883L) && !defined(FEATURE_AZ_POSITION_ADAFRUIT_LSM303) && !defined(FEATURE_AZ_POSITION_HH12_AS5045_SSI) &&!defined(FEATURE_AZ_POSITION_INCREMENTAL_ENCODER) &&!defined(FEATURE_AZ_POSITION_POLOLU_LSM303) &&!defined(FEATURE_AZ_POSITION_A2_ABSOLUTE_ENCODER) &&!defined(FEATURE_AZ_POSITION_ROTARY_ENCODER_USE_PJRC_LIBRARY) && !defined(FEATURE_AZ_POSITION_HMC5883L_USING_JARZEBSKI_LIBRARY) && !defined(FEATURE_AZ_POSITION_DFROBOT_QMC5883) && !defined(FEATURE_AZ_POSITION_MECHASOLUTION_QMC5883)
#error "You must specify one AZ position sensor feature"
#error "You must specify one AZ position sensor feature"
#endif
#if defined(FEATURE_ELEVATION_CONTROL) && !defined(FEATURE_EL_POSITION_POTENTIOMETER) && !defined(FEATURE_EL_POSITION_ROTARY_ENCODER) && !defined(FEATURE_EL_POSITION_PULSE_INPUT) && !defined(FEATURE_EL_POSITION_ADXL345_USING_LOVE_ELECTRON_LIB) && !defined(FEATURE_EL_POSITION_ADXL345_USING_ADAFRUIT_LIB) && !defined(FEATURE_EL_POSITION_GET_FROM_REMOTE_UNIT) && !defined(FEATURE_EL_POSITION_ADAFRUIT_LSM303) && !defined(FEATURE_EL_POSITION_HH12_AS5045_SSI) && !defined(FEATURE_EL_POSITION_INCREMENTAL_ENCODER) && !defined(FEATURE_EL_POSITION_MEMSIC_2125) &&!defined(FEATURE_EL_POSITION_POLOLU_LSM303) && !defined(FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER) && !defined(FEATURE_EL_POSITION_ROTARY_ENCODER_USE_PJRC_LIBRARY)
#error "You must specify one EL position sensor feature"
#error "You must specify one EL position sensor feature"
#endif
#if (defined(FEATURE_AZ_PRESET_ENCODER) || defined(FEATURE_EL_PRESET_ENCODER) || defined(FEATURE_AZ_POSITION_ROTARY_ENCODER) || defined(FEATURE_EL_POSITION_ROTARY_ENCODER)) && !defined(FEATURE_ROTARY_ENCODER_SUPPORT)
#define FEATURE_ROTARY_ENCODER_SUPPORT
#define FEATURE_ROTARY_ENCODER_SUPPORT
#endif
#if defined(FEATURE_REMOTE_UNIT_SLAVE) && !defined(FEATURE_ONE_DECIMAL_PLACE_HEADINGS)
#define FEATURE_ONE_DECIMAL_PLACE_HEADINGS
#endif
#if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_I2C_LCD) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_RFROBOT_I2C_DISPLAY) || defined(FEATURE_YWROBOT_I2C_DISPLAY) || defined(FEATURE_SAINSMART_I2C_LCD) || defined(FEATURE_MIDAS_I2C_DISPLAY) || defined(FEATURE_FABO_LCD_PCF8574_DISPLAY)
#define FEATURE_LCD_DISPLAY
#define FEATURE_LCD_DISPLAY
#endif
#if defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_RFROBOT_I2C_DISPLAY) || defined(FEATURE_YWROBOT_I2C_DISPLAY) || defined(FEATURE_SAINSMART_I2C_LCD) || defined(FEATURE_MIDAS_I2C_DISPLAY) || defined(FEATURE_FABO_LCD_PCF8574_DISPLAY)
#define FEATURE_I2C_LCD
#define FEATURE_I2C_LCD
#endif
#if defined(FEATURE_MOON_TRACKING) && !defined(FEATURE_ELEVATION_CONTROL)
#error "FEATURE_MOON_TRACKING requires FEATURE_ELEVATION_CONTROL"
#error "FEATURE_MOON_TRACKING requires FEATURE_ELEVATION_CONTROL"
#endif
#if (defined(FEATURE_MOON_TRACKING) || defined(FEATURE_SUN_TRACKING)) && !defined(FEATURE_CLOCK)
#error "FEATURE_MOON_TRACKING and FEATURE_SUN_TRACKING requires a clock feature to be activated"
#error "FEATURE_MOON_TRACKING and FEATURE_SUN_TRACKING requires a clock feature to be activated"
#endif
#if defined(FEATURE_GPS) && !defined(FEATURE_CLOCK)
#define FEATURE_CLOCK
#endif
#if defined(FEATURE_ONE_DECIMAL_PLACE_HEADINGS) && defined(FEATURE_TWO_DECIMAL_PLACE_HEADINGS)
#error "You need to pick either FEATURE_ONE_DECIMAL_PLACE_HEADINGS or FEATURE_TWO_DECIMAL_PLACE_HEADINGS (or turn both off)"
#define FEATURE_CLOCK
#endif
#if defined(FEATURE_RTC_DS1307)|| defined(FEATURE_RTC_PCF8583)
#define FEATURE_RTC
#define FEATURE_RTC
#endif
#if defined(FEATURE_RTC_DS1307) || defined(FEATURE_RTC_PCF8583) || defined(FEATURE_I2C_LCD) || defined(FEATURE_AZ_POSITION_HMC5883L) || defined(FEATURE_EL_POSITION_ADAFRUIT_LSM303) || defined(FEATURE_EL_POSITION_ADXL345_USING_LOVE_ELECTRON_LIB) || defined(FEATURE_EL_POSITION_ADXL345_USING_ADAFRUIT_LIB) || defined(FEATURE_AZ_POSITION_HMC5883L_USING_JARZEBSKI_LIBRARY) || defined(FEATURE_AZ_POSITION_DFROBOT_QMC5883) || defined(FEATURE_AZ_POSITION_MECHASOLUTION_QMC5883) || defined(FEATURE_HD44780_I2C_DISPLAY)
#define FEATURE_WIRE_SUPPORT
#define FEATURE_WIRE_SUPPORT
#endif
#if defined(FEATURE_RTC_DS1307) && defined(FEATURE_RTC_PCF8583)
#error "You can't have two RTC features enabled!"
#error "You can't have two RTC features enabled!"
#endif
#if defined(FEATURE_REMOTE_UNIT_SLAVE) && defined(OPTION_SYNC_MASTER_CLOCK_TO_SLAVE)
#error "You can't define both FEATURE_REMOTE_UNIT_SLAVE and OPTION_SYNC_MASTER_CLOCK_TO_SLAVE - use OPTION_SYNC_MASTER_CLOCK_TO_SLAVE on the master unit"
#error "You can't define both FEATURE_REMOTE_UNIT_SLAVE and OPTION_SYNC_MASTER_CLOCK_TO_SLAVE - use OPTION_SYNC_MASTER_CLOCK_TO_SLAVE on the master unit"
#endif
#if defined(FEATURE_REMOTE_UNIT_SLAVE) && defined(OPTION_SYNC_MASTER_COORDINATES_TO_SLAVE)
#error "You can't define both FEATURE_REMOTE_UNIT_SLAVE and OPTION_SYNC_MASTER_COORDINATES_TO_SLAVE - use OPTION_SYNC_MASTER_COORDINATES_TO_SLAVE on the master unit"
#error "You can't define both FEATURE_REMOTE_UNIT_SLAVE and OPTION_SYNC_MASTER_COORDINATES_TO_SLAVE - use OPTION_SYNC_MASTER_COORDINATES_TO_SLAVE on the master unit"
#endif
#if defined(FEATURE_MASTER_WITH_ETHERNET_SLAVE) && !defined(FEATURE_ETHERNET)
@ -125,23 +119,23 @@
#endif
#if defined(HARDWARE_EA4TX_ARS_USB) && !defined(FEATURE_4_BIT_LCD_DISPLAY)
#define FEATURE_4_BIT_LCD_DISPLAY
#define FEATURE_4_BIT_LCD_DISPLAY
#endif
#if defined(HARDWARE_EA4TX_ARS_USB) && defined(FEATURE_ELEVATION_CONTROL)
#define HACK_REDUCED_DEBUG
#define HACK_REDUCED_DEBUG
#endif
#if defined(FEATURE_AUTOPARK) && !defined(FEATURE_PARK)
#define FEATURE_PARK
#define FEATURE_PARK
#endif
#if defined(FEATURE_YAESU_EMULATION) || defined(FEATURE_EASYCOM_EMULATION) || defined(FEATURE_DCU_1_EMULATION)
#define CONTROL_PROTOCOL_EMULATION
#define CONTROL_PROTOCOL_EMULATION
#endif
#if (defined(OPTION_SAVE_MEMORY_EXCLUDE_EXTENDED_COMMANDS) || defined(OPTION_SAVE_MEMORY_EXCLUDE_BACKSLASH_CMDS)) && defined(FEATURE_NEXTION_DISPLAY)
#error "FEATURE_NEXTION_DISPLAY requires extended commands. Disable OPTION_SAVE_MEMORY_EXCLUDE_EXTENDED_COMMANDS and OPTION_SAVE_MEMORY_EXCLUDE_BACKSLASH_CMDS."
#error "FEATURE_NEXTION_DISPLAY requires extended commands. Disable OPTION_SAVE_MEMORY_EXCLUDE_EXTENDED_COMMANDS and OPTION_SAVE_MEMORY_EXCLUDE_BACKSLASH_CMDS."
#endif

View File

@ -18,29 +18,27 @@
For Arduino Leonardo, Micro, and Yún, PLEASE READ THIS ! :
If using Serial (USB Serial) for the control (main) port, set SERIAL_PORT_CLASS to Serial_
If using Serial1 (Board pins 0 and 1 Serial) for the control (main) port, set SERIAL_PORT_CLASS to HardwareSerial
If using Serial (USB Serial) for the gps or remote port, set SERIAL_PORT_CLASS_SECONDARY to Serial_
If using Serial1 (Board pins 0 and 1 Serial) for the gps or remote port, set SERIAL_PORT_CLASS_SECONDARY to HardwareSerial
If using Serial (USB Serial) for the control (main) port, set CONTROL_PORT_SERIAL_PORT_CLASS to Serial_
If using Serial1 (Board pins 0 and 1 Serial) for the control (main) port, set CONTROL_PORT_SERIAL_PORT_CLASS to HardwareSerial
For more information on serial ports on various boards: https://www.arduino.cc/reference/en/language/functions/communication/serial/
*/
#if defined(ARDUINO_MAPLE_MINI)
#define SERIAL_PORT_CLASS USBSerial
#define CONTROL_PORT_SERIAL_PORT_CLASS USBSerial
#elif defined(ARDUINO_AVR_MICRO) || defined(ARDUINO_AVR_LEONARDO) || defined(ARDUINO_AVR_YUN)
#define SERIAL_PORT_CLASS Serial_ // <- Arduino Leonardo, Micro, and Yún - Configure this
#define SERIAL_PORT_CLASS_SECONDARY HardwareSerial // <- Arduino Leonardo, Micro, and Yún - Configure this
#define CONTROL_PORT_SERIAL_PORT_CLASS Serial_ // <- Arduino Leonardo, Micro, and Yún - Configure this
#elif defined(ARDUINO_AVR_PROMICRO) || defined(ARDUINO_AVR_ESPLORA) || defined(ARDUINO_AVR_LILYPAD_USB) || defined(ARDUINO_AVR_ROBOT_CONTROL) || defined(ARDUINO_AVR_ROBOT_MOTOR) || defined(ARDUINO_AVR_LEONARDO_ETH)
#define SERIAL_PORT_CLASS Serial_
#define CONTROL_PORT_SERIAL_PORT_CLASS Serial_
#elif defined(TEENSYDUINO)
#define SERIAL_PORT_CLASS usb_serial_class
#define CONTROL_PORT_SERIAL_PORT_CLASS usb_serial_class
#else
#define SERIAL_PORT_CLASS HardwareSerial
#define CONTROL_PORT_SERIAL_PORT_CLASS HardwareSerial
#endif
// do not modify anything below this line
#if defined(HARDWARE_M0UPU) || defined(HARDWARE_EA4TX_ARS_USB) || defined(HARDWARE_WB6KCN) || defined(HARDWARE_TEST)

View File

@ -105,16 +105,6 @@ You can tweak these, but read the online documentation!
#define OPERATION_TIMEOUT 120000 // timeout for any rotation operation in mS ; 120 seconds is usually enough unless you have the speed turned down
#define TIMED_INTERVAL_ARRAY_SIZE 20
#define CONTROL_PORT_BAUD_RATE 9600
#define REMOTE_UNIT_PORT_BAUD_RATE 9600
#define GPS_PORT_BAUD_RATE 9600
#define GPS_MIRROR_PORT_BAUD_RATE 9600
#define CONTROL_PORT_MAPPED_TO &Serial // change this line to map the control port to a different serial port (Serial1, Serial2, etc.)
//#define REMOTE_PORT_MAPPED_TO &Serial1 // change this line to map the remote_unit port to a different serial port
#define GPS_PORT_MAPPED_TO &Serial2 // change this line to map the GPS port to a different serial port
//#define GPS_MIRROR_PORT &Serial1 //3 // use this to mirror output from a GPS unit into the Arduino out another port (uncomment to enable)
#define OPTION_SEND_STRING_OUT_CONTROL_PORT_WHEN_INITIALIZING_STRING ("test\n\r")
#define LCD_COLUMNS 20 //16
#define LCD_ROWS 4 //2 // this is automatically set below for HARDWARE_EA4TX_ARS_USB and HARDWARE_M0UPU
#define LCD_UPDATE_TIME 1000 // LCD update time in milliseconds
@ -334,9 +324,6 @@ You can tweak these, but read the online documentation!
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz
#define nexSerial Serial3
#define NEXTION_SERIAL_BAUD 115200
#define ROTATIONAL_AND_CONFIGURATION_CMD_IGNORE_TIME_MS 5000 // if OPTION_ALLOW_ROTATIONAL_AND_CONFIGURATION_CMDS_AT_BOOT_UP is enabled, ignore configuration and rotational command for this many mS after boot up
/* Deprecated in version 2020.06.20.01
@ -347,4 +334,18 @@ You can tweak these, but read the online documentation!
#define ROTATE_PIN_AZ_INACTIVE_VALUE LOW
#define ROTATE_PIN_AZ_ACTIVE_VALUE HIGH
#define ROTATE_PIN_EL_INACTIVE_VALUE LOW
#define ROTATE_PIN_EL_ACTIVE_VALUE HIGH
#define ROTATE_PIN_EL_ACTIVE_VALUE HIGH
// Changed in 2020.06.26.02
// Serial Port Settings
#define CONTROL_PORT_MAPPED_TO &Serial // change this line to map the control port to a different serial port (Serial1, Serial2, etc.)
#define CONTROL_PORT_BAUD_RATE 9600
//#define REMOTE_PORT Serial3 // used to control remote unit
#define REMOTE_UNIT_PORT_BAUD_RATE 9600
#define GPS_PORT Serial2
#define GPS_PORT_BAUD_RATE 9600
// #define GPS_MIRROR_PORT Serial1 // use this to mirror output from a GPS unit into the Arduino out another port (uncomment to enable)
// #define GPS_MIRROR_PORT_BAUD_RATE 9600
#define nexSerial Serial3
#define NEXTION_SERIAL_BAUD 115200
#define OPTION_SEND_STRING_OUT_CONTROL_PORT_WHEN_INITIALIZING_STRING ("test\n\r")

View File

@ -105,16 +105,6 @@ You can tweak these, but read the online documentation!
#define OPERATION_TIMEOUT 120000 // timeout for any rotation operation in mS ; 120 seconds is usually enough unless you have the speed turned down
#define TIMED_INTERVAL_ARRAY_SIZE 20
#define CONTROL_PORT_BAUD_RATE 9600
#define REMOTE_UNIT_PORT_BAUD_RATE 9600
#define GPS_PORT_BAUD_RATE 9600
#define GPS_MIRROR_PORT_BAUD_RATE 9600
#define CONTROL_PORT_MAPPED_TO &Serial // change this line to map the control port to a different serial port (Serial1, Serial2, etc.)
//#define REMOTE_PORT_MAPPED_TO &Serial1 // change this line to map the remote_unit port to a different serial port
#define GPS_PORT_MAPPED_TO &Serial2 // change this line to map the GPS port to a different serial port
//#define GPS_MIRROR_PORT &Serial1 //3 // use this to mirror output from a GPS unit into the Arduino out another port (uncomment to enable)
#define OPTION_SEND_STRING_OUT_CONTROL_PORT_WHEN_INITIALIZING_STRING ("test\n\r")
#define LCD_COLUMNS 20 //16
#define LCD_ROWS 4 //2 // this is automatically set below for HARDWARE_EA4TX_ARS_USB and HARDWARE_M0UPU
#define LCD_UPDATE_TIME 1000 // LCD update time in milliseconds
@ -337,4 +327,18 @@ You can tweak these, but read the online documentation!
#define ROTATE_PIN_AZ_INACTIVE_VALUE LOW
#define ROTATE_PIN_AZ_ACTIVE_VALUE HIGH
#define ROTATE_PIN_EL_INACTIVE_VALUE LOW
#define ROTATE_PIN_EL_ACTIVE_VALUE HIGH
#define ROTATE_PIN_EL_ACTIVE_VALUE HIGH
// Changed in 2020.06.26.02
// Serial Port Settings
#define CONTROL_PORT_MAPPED_TO &Serial // change this line to map the control port to a different serial port (Serial1, Serial2, etc.)
#define CONTROL_PORT_BAUD_RATE 9600
//#define REMOTE_PORT Serial3 // used to control remote unit
#define REMOTE_UNIT_PORT_BAUD_RATE 9600
#define GPS_PORT Serial2
#define GPS_PORT_BAUD_RATE 9600
// #define GPS_MIRROR_PORT Serial1 // use this to mirror output from a GPS unit into the Arduino out another port (uncomment to enable)
// #define GPS_MIRROR_PORT_BAUD_RATE 9600
#define nexSerial Serial3
#define NEXTION_SERIAL_BAUD 115200
#define OPTION_SEND_STRING_OUT_CONTROL_PORT_WHEN_INITIALIZING_STRING ("test\n\r")

View File

@ -105,16 +105,6 @@ You can tweak these, but read the online documentation!
#define OPERATION_TIMEOUT 120000 // timeout for any rotation operation in mS ; 120 seconds is usually enough unless you have the speed turned down
#define TIMED_INTERVAL_ARRAY_SIZE 20
#define CONTROL_PORT_BAUD_RATE 9600
#define REMOTE_UNIT_PORT_BAUD_RATE 9600
#define GPS_PORT_BAUD_RATE 9600
#define GPS_MIRROR_PORT_BAUD_RATE 9600
#define CONTROL_PORT_MAPPED_TO &Serial // change this line to map the control port to a different serial port (Serial1, Serial2, etc.)
//#define REMOTE_PORT_MAPPED_TO &Serial1 // change this line to map the remote_unit port to a different serial port
#define GPS_PORT_MAPPED_TO &Serial2 // change this line to map the GPS port to a different serial port
//#define GPS_MIRROR_PORT &Serial1 //3 // use this to mirror output from a GPS unit into the Arduino out another port (uncomment to enable)
#define OPTION_SEND_STRING_OUT_CONTROL_PORT_WHEN_INITIALIZING_STRING ("test\n\r")
#define LCD_COLUMNS 20 //16
#define LCD_ROWS 4 //2 // this is automatically set below for HARDWARE_EA4TX_ARS_USB and HARDWARE_M0UPU
#define LCD_UPDATE_TIME 1000 // LCD update time in milliseconds
@ -323,9 +313,6 @@ You can tweak these, but read the online documentation!
#define STALL_CHECK_DEGREES_THRESHOLD_EL 2
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz
#define nexSerial Serial3
#define NEXTION_SERIAL_BAUD 115200
#define ROTATIONAL_AND_CONFIGURATION_CMD_IGNORE_TIME_MS 5000 // if OPTION_ALLOW_ROTATIONAL_AND_CONFIGURATION_CMDS_AT_BOOT_UP is enabled, ignore configuration and rotational command for this many mS after boot up
@ -337,4 +324,18 @@ You can tweak these, but read the online documentation!
#define ROTATE_PIN_AZ_INACTIVE_VALUE LOW
#define ROTATE_PIN_AZ_ACTIVE_VALUE HIGH
#define ROTATE_PIN_EL_INACTIVE_VALUE LOW
#define ROTATE_PIN_EL_ACTIVE_VALUE HIGH
#define ROTATE_PIN_EL_ACTIVE_VALUE HIGH
// Changed in 2020.06.26.02
// Serial Port Settings
#define CONTROL_PORT_MAPPED_TO &Serial // change this line to map the control port to a different serial port (Serial1, Serial2, etc.)
#define CONTROL_PORT_BAUD_RATE 9600
//#define REMOTE_PORT Serial3 // used to control remote unit
#define REMOTE_UNIT_PORT_BAUD_RATE 9600
#define GPS_PORT Serial2
#define GPS_PORT_BAUD_RATE 9600
// #define GPS_MIRROR_PORT Serial1 // use this to mirror output from a GPS unit into the Arduino out another port (uncomment to enable)
// #define GPS_MIRROR_PORT_BAUD_RATE 9600
#define nexSerial Serial3
#define NEXTION_SERIAL_BAUD 115200
#define OPTION_SEND_STRING_OUT_CONTROL_PORT_WHEN_INITIALIZING_STRING ("test\n\r")

View File

@ -116,20 +116,6 @@ You can tweak these, but read the online documentation!
#define OPERATION_TIMEOUT 120000 // timeout for any rotation operation in mS ; 120 seconds is usually enough unless you have the speed turned down
#define TIMED_INTERVAL_ARRAY_SIZE 20
#define CONTROL_PORT_BAUD_RATE 115200 //9600
#define REMOTE_UNIT_PORT_BAUD_RATE 9600
#define GPS_PORT_BAUD_RATE 9600
#define GPS_MIRROR_PORT_BAUD_RATE 9600
#define CONTROL_PORT_MAPPED_TO &Serial // change this line to map the control port to a different serial port (Serial1, Serial2, etc.)
#define REMOTE_PORT_MAPPED_TO &Serial3 // change this line to map the remote_unit port to a different serial port
#if !defined(ARDUINO_AVR_MICRO)
#define GPS_PORT_MAPPED_TO &Serial2 // change this line to map the GPS port to a different serial port
#else
#define GPS_PORT_MAPPED_TO &Serial1
#endif
//#define GPS_MIRROR_PORT &Serial1 //3 // use this to mirror output from a GPS unit into the Arduino out another port (uncomment to enable)
#define OPTION_SEND_STRING_OUT_CONTROL_PORT_WHEN_INITIALIZING_STRING ("test\n\r")
#define LCD_COLUMNS 20 //16
#define LCD_ROWS 4 //2 // this is automatically set below for HARDWARE_EA4TX_ARS_USB and HARDWARE_M0UPU
#define LCD_UPDATE_TIME 1000 // LCD update time in milliseconds
@ -346,9 +332,6 @@ You can tweak these, but read the online documentation!
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz
#define nexSerial Serial3
#define NEXTION_SERIAL_BAUD 115200
#define ROTATIONAL_AND_CONFIGURATION_CMD_IGNORE_TIME_MS 5000 // if OPTION_ALLOW_ROTATIONAL_AND_CONFIGURATION_CMDS_AT_BOOT_UP is enabled, ignore configuration and rotational command for this many mS after boot up
/* Deprecated in version 2020.06.20.01
@ -361,6 +344,21 @@ You can tweak these, but read the online documentation!
#define ROTATE_PIN_EL_INACTIVE_VALUE LOW
#define ROTATE_PIN_EL_ACTIVE_VALUE HIGH
// Changed in 2020.06.26.02
// Serial Port Settings
#define CONTROL_PORT_MAPPED_TO &Serial // change this line to map the control port to a different serial port (Serial1, Serial2, etc.)
#define CONTROL_PORT_BAUD_RATE 115200
//#define REMOTE_PORT Serial3 // used to control remote unit
#define REMOTE_UNIT_PORT_BAUD_RATE 9600
#define GPS_PORT Serial2
#define GPS_PORT_BAUD_RATE 9600
// #define GPS_MIRROR_PORT Serial1 // use this to mirror output from a GPS unit into the Arduino out another port (uncomment to enable)
// #define GPS_MIRROR_PORT_BAUD_RATE 9600
#define nexSerial Serial3
#define NEXTION_SERIAL_BAUD 115200
#define OPTION_SEND_STRING_OUT_CONTROL_PORT_WHEN_INITIALIZING_STRING ("test\n\r")
// ######## ######## ###### ########
// ## ## ## ## ##

View File

@ -106,16 +106,6 @@ You can tweak these, but read the online documentation!
#define OPERATION_TIMEOUT 120000 // timeout for any rotation operation in mS ; 120 seconds is usually enough unless you have the speed turned down
#define TIMED_INTERVAL_ARRAY_SIZE 20
#define CONTROL_PORT_BAUD_RATE 9600
#define REMOTE_UNIT_PORT_BAUD_RATE 9600
#define GPS_PORT_BAUD_RATE 9600
#define GPS_MIRROR_PORT_BAUD_RATE 9600
#define CONTROL_PORT_MAPPED_TO &Serial // change this line to map the control port to a different serial port (Serial1, Serial2, etc.)
#define REMOTE_PORT_MAPPED_TO &Serial1 // change this line to map the remote_unit port to a different serial port
#define GPS_PORT_MAPPED_TO &Serial2 // change this line to map the GPS port to a different serial port
//#define GPS_MIRROR_PORT &Serial3 // use this to mirror output from a GPS unit into the Arduino out another port (uncomment to enable)
#define OPTION_SEND_STRING_OUT_CONTROL_PORT_WHEN_INITIALIZING_STRING ("test\n\r")
#define LCD_COLUMNS 20 //16
#define LCD_ROWS 4 //2
#define LCD_UPDATE_TIME 1000 // LCD update time in milliseconds
@ -337,4 +327,19 @@ You can tweak these, but read the online documentation!
#define ROTATE_PIN_AZ_ACTIVE_VALUE HIGH
#define ROTATE_PIN_EL_INACTIVE_VALUE LOW
#define ROTATE_PIN_EL_ACTIVE_VALUE HIGH
// Changed in 2020.06.26.02
// Serial Port Settings
#define CONTROL_PORT_MAPPED_TO &Serial // change this line to map the control port to a different serial port (Serial1, Serial2, etc.)
#define CONTROL_PORT_BAUD_RATE 9600
//#define REMOTE_PORT Serial3 // used to control remote unit
#define REMOTE_UNIT_PORT_BAUD_RATE 9600
#define GPS_PORT Serial2
#define GPS_PORT_BAUD_RATE 9600
// #define GPS_MIRROR_PORT Serial1 // use this to mirror output from a GPS unit into the Arduino out another port (uncomment to enable)
// #define GPS_MIRROR_PORT_BAUD_RATE 9600
#define nexSerial Serial3
#define NEXTION_SERIAL_BAUD 115200
#define OPTION_SEND_STRING_OUT_CONTROL_PORT_WHEN_INITIALIZING_STRING ("test\n\r")