Skip to content

Commit

Permalink
Fix pier side as proposed by Colin McGill
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Sep 30, 2024
1 parent 417efe0 commit eca1764
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
</device>
<device label="AstroTrac" manufacturer="AstroTrac">
<driver name="AstroTrac">indi_astrotrac_telescope</driver>
<version>1.0</version>
<version>1.1</version>
</device>
<device label="Rainbow RST-135" manufacturer="Rainbow Astro">
<driver name="Rainbow">indi_rainbow_telescope</driver>
Expand Down
10 changes: 5 additions & 5 deletions drivers/telescope/astrotrac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ using namespace INDI::AlignmentSubsystem;

AstroTrac::AstroTrac(): GI(this)
{
setVersion(1, 0);
setVersion(1, 1);

SetTelescopeCapability(TELESCOPE_CAN_PARK | TELESCOPE_CAN_SYNC | TELESCOPE_CAN_GOTO | TELESCOPE_CAN_ABORT |
TELESCOPE_HAS_TIME | TELESCOPE_HAS_LOCATION | TELESCOPE_HAS_TRACK_MODE | TELESCOPE_HAS_TRACK_RATE |
Expand Down Expand Up @@ -437,19 +437,19 @@ void AstroTrac::getRADEFromEncoders(double haEncoder, double deEncoder, double &
// Northern Hemisphere
if (LocationNP[LOCATION_LATITUDE].getValue() >= 0)
{
// "Normal" Pointing State (East, looking West)
// "Normal" Pointing State (West, looking East)
if (MountTypeSP.findOnSwitchIndex() == MOUNT_SINGLE_ARM || deEncoder >= 0)
{
de = std::min(90 - deEncoder, 90.0);
ha = -6.0 + (haEncoder / 360.0) * 24.0;
pierSide = PIER_EAST;
pierSide = PIER_WEST;
}
// "Reversed" Pointing State (West, looking East)
// "Reversed" Pointing State (East, looking West)
else
{
de = 90 + deEncoder;
ha = 6.0 + (haEncoder / 360.0) * 24.0;
pierSide = PIER_WEST;
pierSide = PIER_EAST;
}
}
// Southern Hemisphere
Expand Down

0 comments on commit eca1764

Please sign in to comment.