Skip to content

Commit

Permalink
Minor change for Telescope Simulator
Browse files Browse the repository at this point in the history
- Avoid using a single ENUM
  • Loading branch information
naheedsa committed Feb 29, 2024
1 parent ac939df commit c19932b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions drivers/telescope/telescope_simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool ScopeSim::initProperties()
mountModelNP.fill(getDeviceName(), "MOUNT_MODEL", "Mount Model",
"Simulation", IP_WO, 0, IPS_IDLE);

flipHourAngleNP[FLIP_HA].fill("FLIP_HA", "Hour Angle (deg)", "%g", -20, 20, 0.1, 0);
flipHourAngleNP[0].fill("FLIP_HA", "Hour Angle (deg)", "%g", -20, 20, 0.1, 0);
flipHourAngleNP.fill(getDeviceName(), "FLIP_HA", "Flip Posn.",
"Simulation", IP_WO, 0, IPS_IDLE);

Expand Down Expand Up @@ -433,7 +433,7 @@ bool ScopeSim::ISNewNumber(const char *dev, const char *name, double values[], c
flipHourAngleNP.update(values, names, n);
flipHourAngleNP.setState(IPS_OK);
flipHourAngleNP.apply();
alignment.setFlipHourAngle(flipHourAngleNP[FLIP_HA].getValue());
alignment.setFlipHourAngle(flipHourAngleNP[0].getValue());
return true;
}
#endif
Expand Down
4 changes: 0 additions & 4 deletions drivers/telescope/telescope_simulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ class ScopeSim : public INDI::Telescope, public INDI::GuiderInterface
};

INDI::PropertyNumber flipHourAngleNP {1};
enum
{
FLIP_HA
};

#endif

Expand Down

0 comments on commit c19932b

Please sign in to comment.