Skip to content

Commit 1a3f75b

Browse files
committed
ASCOM Driver work
ASCOM driver now slews, small app to start testing ASCOM included
1 parent 2d791d7 commit 1a3f75b

File tree

10 files changed

+686
-184
lines changed

10 files changed

+686
-184
lines changed

Software/Arduino code/OpenAstroTracker/f_serial.ino

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ void handleMeadeGetInfo(String inCmd) {
3030
case 'V' : {
3131
if (cmdTwo == 'N') {
3232
Serial.print(version);
33+
Serial.print("#");
3334
}
3435
else if (cmdTwo == 'P') {
35-
Serial.print("OpenAstroTracker");
36+
Serial.print("OpenAstroTracker#");
3637
}
3738
}
3839
break;
@@ -57,7 +58,9 @@ void handleMeadeSetInfo(String inCmd) {
5758
Serial.print("0");
5859
return;
5960
}
60-
Serial.println("[" + inCmd + "]");
61+
// Handy for troubleshooting, but breaks ASCOM
62+
//Serial.println("[" + inCmd + "]");
63+
6164
if (inCmd[0] == 'd') {
6265
// Set DEC
6366
int sgn = inCmd[1] == '+' ? 1 : -1;
@@ -97,7 +100,8 @@ void handleMeadeSetInfo(String inCmd) {
97100
/////////////////////////////
98101
void handleMeadeMovement(String inCmd) {
99102
if (inCmd[0] == 'S') {
100-
103+
Serial.print(0); // ASCOM will expect response per Meade protocol definition
104+
// We aren't calculating invalid requests yet, so returns 0 for now.
101105
startSlewing();
102106
}
103107
}

Software/OpenAstroTracker ASCOM/OAT PC Control/Form1.Designer.vb

Lines changed: 0 additions & 76 deletions
This file was deleted.

Software/OpenAstroTracker ASCOM/OAT PC Control/Form1.vb

Lines changed: 0 additions & 63 deletions
This file was deleted.

Software/OpenAstroTracker ASCOM/OAT PC Control/My Project/Application.Designer.vb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-16"?>
22
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
33
<MySubMain>true</MySubMain>
4-
<MainForm>Form1</MainForm>
4+
<MainForm>frmMain</MainForm>
55
<SingleInstance>false</SingleInstance>
66
<ShutdownMode>0</ShutdownMode>
77
<EnableVisualStyles>true</EnableVisualStyles>
88
<AuthenticationMode>0</AuthenticationMode>
9-
<ApplicationType>0</ApplicationType>
109
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
11-
</MyApplicationData>
10+
</MyApplicationData>

Software/OpenAstroTracker ASCOM/OAT PC Control/OAT PC Control.vbproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@
7777
<Import Include="System.Xml.Linq" />
7878
</ItemGroup>
7979
<ItemGroup>
80-
<Compile Include="Form1.vb">
80+
<Compile Include="frmMain.vb">
8181
<SubType>Form</SubType>
8282
</Compile>
83-
<Compile Include="Form1.Designer.vb">
84-
<DependentUpon>Form1.vb</DependentUpon>
83+
<Compile Include="frmMain.Designer.vb">
84+
<DependentUpon>frmMain.vb</DependentUpon>
8585
<SubType>Form</SubType>
8686
</Compile>
8787
<Compile Include="My Project\AssemblyInfo.vb" />
@@ -101,8 +101,8 @@
101101
</Compile>
102102
</ItemGroup>
103103
<ItemGroup>
104-
<EmbeddedResource Include="Form1.resx">
105-
<DependentUpon>Form1.vb</DependentUpon>
104+
<EmbeddedResource Include="frmMain.resx">
105+
<DependentUpon>frmMain.vb</DependentUpon>
106106
</EmbeddedResource>
107107
<EmbeddedResource Include="My Project\Resources.resx">
108108
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>

0 commit comments

Comments
 (0)