Skip to content

Commit 157521d

Browse files
Remaining changes from PR27 added
1 parent aaf061d commit 157521d

3 files changed

Lines changed: 21 additions & 21 deletions

File tree

Configuration.hpp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* - Specific to a board:
1515
* Create a file called Configuration_local_<board>.hpp, see valid board types in LocalConfiguration.hpp
1616
* The code automatically picks the right one at compile time. This is useful if you are
17-
* developer or just have multiple OATs.
17+
* developer or just have multiple OpenAstroTech mounts.
1818
* - Custom configurations or advanced builds:
1919
* Use Configuration_local.hpp to include an appropriate local configuration file e.g. according to
20-
* preprocessor directives specified on the command line. This is useful if you have multiple OATs, or wish
20+
* preprocessor directives specified on the command line. This is useful if you have multiple OpenAstroTech mounts, or wish
2121
* to build the software across many software configurations on the same platform.
2222
*
2323
* These files won't be tracked by Git and thus will remain after branch changes or code updates.
@@ -39,10 +39,6 @@
3939

4040
// Uncomment the definition and set a board (see Constants.hpp for valid values) if you build in Arduino IDE.
4141
// PlatformIO will set this value automatically and no action is needed.
42-
#ifndef BOARD
43-
// #define BOARD BOARD_AVR_MEGA2560
44-
#endif
45-
4642
#ifndef BOARD
4743
#error You have to specify the board
4844
#endif
@@ -179,9 +175,9 @@
179175
* Requirements for WIFI_MODE:
180176
* WIFI_MODE_DISABLED (i.e. Wifi transceiver disabled)
181177
* No additional requirements.
182-
* WIFI_MODE_INFRASTRUCTURE (i.e. connect OAT to existing Wifi network):
178+
* WIFI_MODE_INFRASTRUCTURE (i.e. connect OpenAstroTech mount to existing Wifi network):
183179
* WIFI_INFRASTRUCTURE_MODE_SSID & WIFI_INFRASTRUCTURE_MODE_WPAKEY must be set.
184-
* WIFI_MODE_AP_ONLY (i.e. set OAT as Wifi hotspot):
180+
* WIFI_MODE_AP_ONLY (i.e. set OpenAstroTech mount as Wifi hotspot):
185181
* WIFI_AP_MODE_WPAKEY must be set.
186182
* WIFI_MODE_ATTEMPT_INFRASTRUCTURE_FAIL_TO_AP (i.e. try WIFI_MODE_INFRASTRUCTURE, fall back to WIFI_MODE_AP_ONLY):
187183
* Requirements for both WIFI_MODE_INFRASTRUCTURE and WIFI_MODE_AP_ONLY must be satisfied.
@@ -251,16 +247,19 @@
251247
#define TRACK_ON_BOOT 1
252248
#endif
253249

254-
// Set this to specify the amount of debug output OAT should send to the serial port.
255-
// Note that if you use an app to control OAT, ANY debug output will likely confuse that app.
256-
// Debug output is useful if you are using Wifi to control the OAT or if you are issuing
250+
// Set this to specify the amount of debug output the OpenAstroTech mount should send to the serial port.
251+
// Note that if you use an app to control the OpenAstroTech mount, ANY debug output will likely confuse that app.
252+
// Debug output is useful if you are using Wifi to control the OpenAstroTech mount or if you are issuing
257253
// manual commands via a terminal.
258254
#ifndef DEBUG_LEVEL
259255
#define DEBUG_LEVEL (DEBUG_NONE)
260256
#endif
261257

262258
// Append board specific pins data.
263-
#if (BOARD == BOARD_AVR_MEGA2560)
259+
#if (BOARD == BOARD_UNKNOWN)
260+
// Assume custom user board - no predefined pin mapping. Pins need to be manually defined in Configuration_local.hpp
261+
#warning "Assuming custom user board. Pins need to be manually defined in Configuration_local.hpp"
262+
#elif (BOARD == BOARD_AVR_MEGA2560)
264263
#include "boards/AVR_MEGA2560/pins_MEGA2560.hpp"
265264
#elif (BOARD == BOARD_AVR_RAMPS)
266265
#include "boards/RAMPS/pins_RAMPS.hpp"

Configuration_adv.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#pragma once
22

33
/**
4-
* This file contains advanced configurations. Edit values here only if you know what you are doing. Invalid values
5-
* can lead to OAT misbehaving very bad and in worst case could even lead to hardware damage. The default values here
6-
* were chosen after many tests and can are currently concidered to work the best.
4+
* This file contains advanced configurations. Edit values here only if you know what you are doing. Invalid values can
5+
* lead to the OpenAstroTech mount misbehaving very bad and in worst case could even lead to hardware damage. The
6+
* default values here were chosen after many tests and are currently considered to work the best.
77
*
88
*
99
* YOU SHOULD NOT NEED TO EDIT THIS FILE!
@@ -690,9 +690,9 @@
690690
// 4 DEBUG_MOUNT_VERBOSE Verbose mount processing (coordinates, etc)
691691
// 5 DEBUG_GENERAL Other misc. output
692692
// 6 DEBUG_MEADE Meade command handling output
693-
// Set this to specify the amount of debug output OAT should send to the serial port.
694-
// Note that if you use an app to control OAT, ANY debug output will likely confuse that app.
695-
// Debug output is useful if you are using Wifi to control the OAT or if you are issuing
693+
// Set this to specify the amount of debug output the OpenAstroTech mount should send to the serial port.
694+
// Note that if you use an app to control the OpenAstroTech mount, ANY debug output will likely confuse that app.
695+
// Debug output is useful if you are using Wifi to control the OpenAstroTech mount or if you are issuing
696696
// manual commands via a terminal only.
697697
//
698698
#ifndef DEBUG_LEVEL

Constants.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#pragma once
22

33
/**
4-
* This file contains constants that SHOULD NOT BE CHANGED by oat users!
5-
* If you are a developer and want to add new hardware support, add a
6-
* proper definition here with increased value.
4+
* This file contains constants that SHOULD NOT BE CHANGED by OpenAstroTech users!
5+
* If you are a developer and want to add new hardware support, add a proper
6+
* definition here with an increased value.
77
**/
88

99
/**
1010
* Supported boards. The name consists of the platform and the board name (model).
1111
**/
1212
// AVR based boards
13+
#define BOARD_UNKNOWN 0000
1314
#define BOARD_AVR_MEGA2560 0001
1415
#define BOARD_AVR_MKS_GEN_L_V21 0002
1516
#define BOARD_AVR_MKS_GEN_L_V2 0003

0 commit comments

Comments
 (0)