pull/1/head
ozarchie 2019-02-27 13:03:25 +10:00
rodzic 874b9ddcbc
commit 1cdbe17615
6 zmienionych plików z 104 dodań i 88 usunięć

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -232,8 +232,8 @@ vm.runtime.compiler.allow_library_debugging=false
serial.port.file=COM11
serial.port=COM11
serial.port.num=11
extra.time.local=1551270354
extra.time.utc=1551234354
extra.time.local=1551271724
extra.time.utc=1551235724
extra.time.dst=36000
extra.time.zone=-36000
build.project_name=EQG2HBXE32.ino
@ -268,7 +268,7 @@ vm.last.preproc.file.1.lineend=470
vm.last.preproc.file.1.prefix_lines=0
vm.last.preproc.file.2.file=EQGProtocol.h
vm.last.preproc.file.2.offset=0
vm.last.preproc.file.2.length=9758
vm.last.preproc.file.2.length=9819
vm.last.preproc.file.2.linecount=288
vm.last.preproc.file.2.linestart=470
vm.last.preproc.file.2.lineend=758

Wyświetl plik

@ -15,10 +15,10 @@
float SIDEREALSECS = 86164.098903691; // Some astronomical constants
float SOLARSECS = 86400;
float LUNARSECS = 89309;
#define SKYWATCHER_SIDEREAL_DAY 86164.09053083288
#define SKYWATCHER_SIDEREAL_SPEED 15.04106864
#define SKYWATCHER_STELLAR_DAY 86164.098903691
#define SKYWATCHER_SIDEREAL_DAY 86164.09053083288
#define SKYWATCHER_SIDEREAL_SPEED 15.04106864
#define SKYWATCHER_STELLAR_DAY 86164.098903691
#define SKYWATCHER_STELLAR_SPEED 15.041067179
#define EQG_CMNDSTART 0x01
@ -26,8 +26,8 @@ float LUNARSECS = 89309;
#define EQG_INTERPRET 0x78
/*
tmpMCVersion = Revu24str2long(response + 1);
MCVersion = ((tmpMCVersion & 0xFF) << 16) | ((tmpMCVersion & 0xFF00)) | ((tmpMCVersion & 0xFF0000) >> 16);
tmpMCVersion = Revu24str2long(response + 1);
MCVersion = ((tmpMCVersion & 0xFF) << 16) | ((tmpMCVersion & 0xFF00)) | ((tmpMCVersion & 0xFF0000) >> 16);
MountCode = MCVersion & 0xFF;
*/
@ -85,61 +85,61 @@ AxisFeatures[Axis1].hasCommonSlewStart = rafeatures & 0x00002000; // supports :J
AxisFeatures[Axis1].hasHalfCurrentTracking = rafeatures & 0x00004000;
AxisFeatures[Axis1].hasWifi = rafeatures & 0x00008000;
*/
// Types
enum SkywatcherCommand
{
Initialize = 'F',
InquireMotorBoardVersion = 'e',
InquireGridPerRevolution = 'a',
InquireTimerInterruptFreq = 'b',
InquireHighSpeedRatio = 'g',
InquirePECPeriod = 's',
InstantAxisStop = 'L',
NotInstantAxisStop = 'K',
SetAxisPositionCmd = 'E',
GetAxisPosition = 'j',
GetAxisStatus = 'f',
SetSwitch = 'O',
SetMotionMode = 'G',
SetGotoTargetIncrement = 'H',
SetBreakPointIncrement = 'M',
SetGotoTarget = 'S',
SetBreakStep = 'U',
SetStepPeriod = 'I',
StartMotion = 'J',
GetStepPeriod = 'D', // See Merlin protocol http://www.papywizard.org/wiki/DevelopGuide
ActivateMotor = 'B', // See eq6direct implementation http://pierre.nerzic.free.fr/INDI/
SetST4GuideRateCmd = 'P',
GetHomePosition = 'd', // Get Home position encoder count (default at startup)
SetFeatureCmd = 'W', // EQ8/AZEQ6/AZEQ5 only
GetFeatureCmd = 'q', // EQ8/AZEQ6/AZEQ5 only
InquireAuxEncoder = 'd', // EQ8/AZEQ6/AZEQ5 only
NUMBER_OF_SkywatcherCommand
};
enum SkywatcherAxis
{
Axis1 = 0, // RA/AZ
Axis2 = 1, // DE/ALT
NUMBER_OF_SKYWATCHERAXIS
};
char AxisCmd[2]{ '1', '2' };
enum SkywatcherDirection
{
BACKWARD = 0,
FORWARD = 1
};
enum SkywatcherSlewMode
{
SLEW = 0,
GOTO = 1
};
enum SkywatcherSpeedMode
{
LOWSPEED = 0,
HIGHSPEED = 1
};
// Types
enum SkywatcherCommand
{
Initialize = 'F',
InquireMotorBoardVersion = 'e',
InquireGridPerRevolution = 'a',
InquireTimerInterruptFreq = 'b',
InquireHighSpeedRatio = 'g',
InquirePECPeriod = 's',
InstantAxisStop = 'L',
NotInstantAxisStop = 'K',
SetAxisPositionCmd = 'E',
GetAxisPosition = 'j',
GetAxisStatus = 'f',
SetSwitch = 'O',
SetMotionMode = 'G',
SetGotoTargetIncrement = 'H',
SetBreakPointIncrement = 'M',
SetGotoTarget = 'S',
SetBreakStep = 'U',
SetStepPeriod = 'I',
StartMotion = 'J',
GetStepPeriod = 'D', // See Merlin protocol http://www.papywizard.org/wiki/DevelopGuide
ActivateMotor = 'B', // See eq6direct implementation http://pierre.nerzic.free.fr/INDI/
SetST4GuideRateCmd = 'P',
GetHomePosition = 'd', // Get Home position encoder count (default at startup)
SetFeatureCmd = 'W', // EQ8/AZEQ6/AZEQ5 only
GetFeatureCmd = 'q', // EQ8/AZEQ6/AZEQ5 only
InquireAuxEncoder = 'd', // EQ8/AZEQ6/AZEQ5 only
NUMBER_OF_SkywatcherCommand
};
enum SkywatcherAxis
{
Axis1 = 0, // RA/AZ
Axis2 = 1, // DE/ALT
NUMBER_OF_SKYWATCHERAXIS
};
char AxisCmd[2]{ '1', '2' };
enum SkywatcherDirection
{
BACKWARD = 0,
FORWARD = 1
};
enum SkywatcherSlewMode
{
SLEW = 0,
GOTO = 1
};
enum SkywatcherSpeedMode
{
LOWSPEED = 0,
HIGHSPEED = 1
};
typedef struct SkyWatcherFeatures
{

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -2,35 +2,51 @@ THIS CODE IS NOT FULLY TESTED.
ONLY USE IT IF YOU WANT TO HELP IN THE DEBUG PROCESS.
<hr />
<h1>Installation</h1>
<h2>EQMOD</h2>
<hr />
<ol>
EQMOD does not support WiFi communications natively.
It needs a Serial<->WiFi bridge.
If you want to use EQMOD, you need to build the
<li> [EQMOD-WiFi](https://github.com/ozarchie/EQMOD-WiFi), or
<li> [EQMOD-BT](https://github.com/ozarchie/EQMOD-Bluetooth)
interface and code.
</li>
If you are OK with SynScan, see below.
<h2>ESP32</h2>
<h2>ESP32 Interface</h2>
<hr />
<ol>
<h3>Download the github image and configure</h3>
<h3>Download the github EQMOD-ETX and configure</h3>
<li>https://github.com/ozarchie/EQMOD-ETX/tree/master/Software</li>
<li>Make sure you have the espressif ESP32 system and libraries installed.
[Download ESP32](https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/windows.md)</li>
<li>Compile and upload to your hardware
<h3>Download and install Synscan (Windows/Android) to drive the scope</h3>
[Download SynScan](http://skywatcher.com/download/software/synscan-app/ "Title")
Download and install ASCOM driver for Synscan (Windows) to interface to CdC etc
[Download SynScan ASCOM](http://skywatcher.com/download/software/ascom-driver/ "Title")
</li>
<li>Search and join WiFi network EQMODWiFi, Password is CShillit0</li>
<li>Compile and upload to your hardware</li>
<ol>
<h2>SYNSCAN</h2>
<h3>Run on Windows - ASCOM only supports Windows</h3>
<li>Download and install Synscan (Windows/Android) to control the telescope</li>
[Download SynScan](http://skywatcher.com/download/software/synscan-app/ "Title")
<li>Download and install ASCOM driver for Synscan (Windows) to interface to CdC (or other ASCOM-based program)</li>
[Download SynScan ASCOM](http://skywatcher.com/download/software/ascom-driver/ "Title")
<li>Search and join WiFi network EQMODWiFi, Password is CShillit0</li>
<li>Start SynScan and press Connect</li>
<li>Select EQ6</li>
<li>THEN Start CdC</li>
<li>Start CdC</li>
<li>Telescope>TelescopeSettings>Telescope: Check ASCOM</li>
<li>Telescope>ConnectTelescope>Select:SynScanMobile Telescope</li>
<li>Telescope>ConnectTelescope>Connect</li>
<li>Telescope>ConnectTelescope>Connect</li>
<h3>Run using phone or tablet App</h3>
<li>Download and install Synscan (iOS/Android) to control the telescope</li>
[Download SynScan](http://skywatcher.com/download/software/synscan-app/ "Title")
<h2>EQMOD</h2>
EQMOD does not support WiFi communications natively.
It needs a Serial<->WiFi bridge.
If you want to use EQMOD, you need to build the
<li> [EQMOD-WiFi](https://github.com/ozarchie/EQMOD-WiFi)
interface and code.
</li>