Skip to content

Commit

Permalink
Fix issues | Use new Property style
Browse files Browse the repository at this point in the history
  • Loading branch information
naheedsa committed Aug 28, 2024
1 parent 03fc9ec commit f59d060
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/telescope/skywatcherAPIMount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1640,15 +1640,15 @@ bool SkywatcherAPIMount::trackUsingPID()

// We modify the SkyTrackingTarget for non-sidereal objects (Moon or Sun)
// FIXME: This was not tested.
if (TrackModeS[TRACK_LUNAR].s == ISS_ON)
if (TrackModeSP[TRACK_LUNAR].getState() == ISS_ON)
{
// TRACKRATE_LUNAR how many arcsecs the Moon moved in one second.
// TRACKRATE_SIDEREAL how many arcsecs the Sky moved in one second.
double dRA = (TRACKRATE_LUNAR - TRACKRATE_SIDEREAL) * m_TrackingRateTimer.elapsed() / 1000.0;
m_SkyTrackingTarget.rightascension += (dRA / 3600.0) * 15.0;
m_TrackingRateTimer.restart();
}
else if (TrackModeS[TRACK_SOLAR].s == ISS_ON)
else if (TrackModeSP[TRACK_SOLAR].getState() == ISS_ON)
{
double dRA = (TRACKRATE_SOLAR - TRACKRATE_SIDEREAL) * m_TrackingRateTimer.elapsed() / 1000.0;
m_SkyTrackingTarget.rightascension += (dRA / 3600.0) * 15.0;
Expand Down Expand Up @@ -1837,15 +1837,15 @@ bool SkywatcherAPIMount::trackUsingPredictiveRates()

// We modify the SkyTrackingTarget for non-sidereal objects (Moon or Sun)
// FIXME: This was not tested.
if (TrackModeS[TRACK_LUNAR].s == ISS_ON)
if (TrackModeSP[TRACK_LUNAR].getState() == ISS_ON)
{
// TRACKRATE_LUNAR how many arcsecs the Moon moved in one second.
// TRACKRATE_SIDEREAL how many arcsecs the Sky moved in one second.
double dRA = (TRACKRATE_LUNAR - TRACKRATE_SIDEREAL) * m_TrackingRateTimer.elapsed() / 1000.0;
m_SkyTrackingTarget.rightascension += (dRA / 3600.0) * 15.0;
m_TrackingRateTimer.restart();
}
else if (TrackModeS[TRACK_SOLAR].s == ISS_ON)
else if (TrackModeSP[TRACK_SOLAR].getState() == ISS_ON)
{
double dRA = (TRACKRATE_SOLAR - TRACKRATE_SIDEREAL) * m_TrackingRateTimer.elapsed() / 1000.0;
m_SkyTrackingTarget.rightascension += (dRA / 3600.0) * 15.0;
Expand Down Expand Up @@ -2044,4 +2044,4 @@ void SkywatcherAPIMount::getGuidePulses(double &az, double &alt)

az = DeltaAlt;
alt = DeltaAz;
}
}

0 comments on commit f59d060

Please sign in to comment.