Skip to content

Commit

Permalink
Use integer for slew speeds
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Oct 18, 2024
1 parent c73c4e7 commit 0c420a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indi-eqmod/eqmodbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ using namespace INDI::AlignmentSubsystem;

/* Preset Slew Speeds */
#define SLEWMODES 11
double slewspeeds[SLEWMODES - 1] = { 1.0, 2.0, 4.0, 8.0, 32.0, 64.0, 128.0, 600.0, 700.0, 800.0 };
int slewspeeds[SLEWMODES - 1] = { 1, 2, 4, 8, 32, 64, 128, 600, 700, 800 };

#define RA_AXIS 0
#define DEC_AXIS 1
Expand Down Expand Up @@ -3062,7 +3062,7 @@ double EQMod::GetRASlew()
if (!strcmp(sw->name, "SLEWCUSTOM"))
rate = SlewSpeedsNP.findWidgetByName("RASLEW")->getValue();
else
rate = *((double *)sw->aux);
rate = *((int *)sw->aux);
return rate;
}

Expand All @@ -3074,7 +3074,7 @@ double EQMod::GetDESlew()
if (!strcmp(sw->name, "SLEWCUSTOM"))
rate = SlewSpeedsNP.findWidgetByName("DESLEW")->getValue();
else
rate = *((double *)sw->aux);
rate = *((int *)sw->aux);
return rate;
}

Expand Down

0 comments on commit 0c420a4

Please sign in to comment.