Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PREVIEW] Initial focuser support added to indi_celestron_aux #862

Merged
merged 6 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions indi-celestronaux/auxproto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ const char * AUXCommand::commandName(AUXCommands command) const
return "MC_SET_AUTOGUIDE_RATE";
case MC_GET_AUTOGUIDE_RATE:
return "MC_GET_AUTOGUIDE_RATE";
case FOC_GET_HS_POSITIONS:
return "FOC_GET_HS_POSITIONS";
default :
return nullptr;
}
Expand Down Expand Up @@ -295,6 +297,8 @@ int AUXCommand::responseDataSize()
{
switch (m_Command)
{
case FOC_GET_HS_POSITIONS:
return 8;
case MC_GET_POSITION:
case MC_GET_CORDWRAP_POS:
return 3;
Expand Down Expand Up @@ -354,6 +358,8 @@ const char * AUXCommand::moduleName(AUXTargets n)
return "APP";
case GPS :
return "GPS";
case FOCUS :
return "FOCUS";
case WiFi:
return "WiFi";
case BAT :
Expand Down
4 changes: 3 additions & 1 deletion indi-celestronaux/auxproto.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ enum AUXCommands
GPS_GET_YEAR = 0x04,
GPS_GET_TIME = 0x33,
GPS_TIME_VALID = 0x36,
GPS_LINKED = 0x37
GPS_LINKED = 0x37,
FOC_GET_HS_POSITIONS = 0x2c
};

enum AUXTargets
Expand All @@ -72,6 +73,7 @@ enum AUXTargets
HCP = 0x0d,
AZM = 0x10,
ALT = 0x11,
FOCUS = 0x12,
APP = 0x20,
GPS = 0xb0,
WiFi = 0xb5,
Expand Down
Loading
Loading