Skip to content

Commit

Permalink
use MOTION_CONTROL_MODE _FOO enums
Browse files Browse the repository at this point in the history
  • Loading branch information
naheedsa committed Sep 24, 2024
1 parent 7858c25 commit 807c333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libs/indibase/inditelescope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@ void Telescope::processButton(const char *button_n, ISState state)

void Telescope::processJoystick(const char *joystick_n, double mag, double angle)
{
if (MotionControlModeTP[MOTION_CONTROL_JOYSTICK].getState() == ISS_ON && !strcmp(joystick_n, "MOTIONDIR"))
if (MotionControlModeTP[MOTION_CONTROL_MODE_JOYSTICK].getState() == ISS_ON && !strcmp(joystick_n, "MOTIONDIR"))
{
if ((TrackState == SCOPE_PARKING) || (TrackState == SCOPE_PARKED))
{
Expand All @@ -2438,7 +2438,7 @@ void Telescope::processJoystick(const char *joystick_n, double mag, double angle

void Telescope::processAxis(const char *axis_n, double value)
{
if (MotionControlModeTP[MOTION_CONTROL_AXES].getState() == ISS_ON)
if (MotionControlModeTP[MOTION_CONTROL_MODE_AXES].getState() == ISS_ON)
{
if (!strcmp(axis_n, "MOTIONDIRNS") || !strcmp(axis_n, "MOTIONDIRWE"))
{
Expand Down
2 changes: 0 additions & 2 deletions libs/indibase/inditelescope.h
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,6 @@ class Telescope : public DefaultDevice
{
MOTION_CONTROL_MODE_JOYSTICK,
MOTION_CONTROL_MODE_AXES,
MOTION_CONTROL_JOYSTICK,
MOTION_CONTROL_AXES
};

// Lock Joystick Axis to one direction only
Expand Down

0 comments on commit 807c333

Please sign in to comment.