@@ -57,33 +57,17 @@ extern byte PolarisRASecond;
5757// Set to 1 to reverse the direction of DEC motor
5858#define INVERT_DEC_DIR 0
5959
60- // //////////////////////////////////////////////////////////////
61- //
62- // FEATURE SUPPORT SECTION
63- //
64- // Since the Arduino Uno has very little memory (32KB code, 2KB data) all features
65- // stretch the Uno a little too far. So in order to save memory we allow you to enable
66- // and disable features to help manage memory usage.
67- // If you run the tracker with an Arduino Mega, you can uncomment all the features.
68- //
69- // If you would like to drive your OAT mount with only the LCD Shield,
70- // you should comment out SUPPORT_SERIAL_CONTROL
71- //
72- // If you feel comfortable with configuring the OAT at startup manually, you should comment
73- // out SUPPORT_GUIDED_STARTUP (maybe after you've used it for a while you know what to do).
74- //
75- // The POI menu can take a little data memory and you may not need it. If not, you can comment
76- // out SUPPORT_POINTS_OF_INTEREST
77- //
78- // //////////////////////////////////////////////////////////////
79-
80- // If you do not have a LCD shield on your Arduino Uno, uncomment the line below. This is
60+ // If you do not have a LCD shield on your Arduino Uno, set this to 1 on the line below. This is
8161// useful if you are always going to run the mount from a laptop anyway.
82- // #define HEADLESS_CLIENT
62+ #define HEADLESS_CLIENT 0
63+
64+ // This is set to 1 for boards that do not support interrupt timers
65+ #define RUN_STEPPERS_IN_MAIN_LOOP 0
8366
8467#if defined(ESP8266) || defined(ESP32)
8568 #define ESPBOARD
86- #define HEADLESS_CLIENT
69+ #undef HEADLESS_CLIENT
70+ #define HEADLESS_CLIENT 1
8771 #define WIFI_ENABLED
8872 #define INFRA_SSID " yourSSID"
8973 #define INFRA_WPAKEY " yourWPAkey"
@@ -94,39 +78,60 @@ extern byte PolarisRASecond;
9478 // 2 - Attempt Infrastructure, Fail over to AP Mode.
9579 #define WIFI_MODE 2
9680 #if defined(ESP8266)
97- #define RUN_STEPPERS_IN_MAIN_LOOP
81+ #undef RUN_STEPPERS_IN_MAIN_LOOP
82+ #define RUN_STEPPERS_IN_MAIN_LOOP 1
9883 #endif
9984#endif
10085
10186
102- // Uncomment this to enable the heating menu
87+ // //////////////////////////////////////////////////////////////
88+ //
89+ // FEATURE SUPPORT SECTION
90+ //
91+ // Since the Arduino Uno has very little memory (32KB code, 2KB data) all features
92+ // stretch the Uno a little too far. So in order to save memory we allow you to enable
93+ // and disable features to help manage memory usage.
94+ // If you run the tracker with an Arduino Mega, you can set all the features to 1.
95+ //
96+ // If you would like to drive your OAT mount with only the LCD Shield, or are on a Uno,
97+ // you should set SUPPORT_SERIAL_CONTROL to 0
98+ //
99+ // If you feel comfortable with configuring the OAT at startup manually, you should set
100+ // SUPPORT_GUIDED_STARTUP to 0 (maybe after you've used it for a while you know what to do).
101+ //
102+ // The POI menu can take a little data memory and you may not need it. If not, you can set
103+ // SUPPORT_POINTS_OF_INTEREST to 0
104+ //
105+ // //////////////////////////////////////////////////////////////
106+
107+ // Set this to 1 this to enable the heating menu
103108// NOTE: Heating is currently not supported!
104- // #define SUPPORT_HEATING
109+ #define SUPPORT_HEATING 0
105110
106- #ifndef HEADLESS_CLIENT
111+ #if HEADLESS_CLIENT == 0
107112
108- // Uncomment to support Guided Startup
109- #define SUPPORT_GUIDED_STARTUP
113+ // Set this to 1 to support Guided Startup
114+ #define SUPPORT_GUIDED_STARTUP 1
110115
111- // Uncomment to support full GO (was POI) menu.
112- // If this is commented out you still have a GO menu that has Home and Park.
113- #define SUPPORT_POINTS_OF_INTEREST
116+ // Set this to 1 to support full GO (was POI) menu.
117+ // If this is set to 0 you still have a GO menu that has Home and Park.
118+ #define SUPPORT_POINTS_OF_INTEREST 1
114119
115- // Uncomment to support CTRL menu, allowing you to manually slew the mount with the buttons.
116- #define SUPPORT_MANUAL_CONTROL
120+ // Set this to 1 to support CTRL menu, allowing you to manually slew the mount with the buttons.
121+ #define SUPPORT_MANUAL_CONTROL 1
117122
118- // Uncomment to support CAL menu, allowing you to calibrate various things
119- #define SUPPORT_CALIBRATION
123+ // Set this to 1 to support CAL menu, allowing you to calibrate various things
124+ #define SUPPORT_CALIBRATION 1
120125
121- // Uncomment to support INFO menu that displays various pieces of information about the mount.
122- #define SUPPORT_INFO_DISPLAY
126+ // Set this to 1 to support INFO menu that displays various pieces of information about the mount.
127+ #define SUPPORT_INFO_DISPLAY 1
123128
124- // Uncomment to support Serial Meade LX200 protocol support
125- #define SUPPORT_SERIAL_CONTROL
129+ // Set this to 1 to support Serial Meade LX200 protocol support
130+ #define SUPPORT_SERIAL_CONTROL 1
126131
127132#else
128133 // If we are making a headleass (no screen, no keyboard) client, always enable Serial.
129- #define SUPPORT_SERIAL_CONTROL
130- #endif
134+ #define SUPPORT_SERIAL_CONTROL 1
135+ #endif // HEADLESS_CLIENT
131136
132- #endif
137+ #endif // _GLOBALS_HPP
0 commit comments