Skip to content

Commit

Permalink
Fix max focus range to correct value of 20000
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Apr 14, 2024
1 parent d6c058d commit 2800ce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
15 changes: 3 additions & 12 deletions drivers/focuser/pegasus_prodigyMF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ bool PegasusProdigyMF::initProperties()

// Max Speed
IUFillNumber(&MaxSpeedN[0], "Value", "", "%6.2f", 100, 1000., 100., 400.);
IUFillNumberVector(&MaxSpeedNP, MaxSpeedN, 1, getDeviceName(), "MaxSpeed", "", FOCUS_SETTINGS_TAB, IP_RW, 0, IPS_IDLE);
IUFillNumberVector(&MaxSpeedNP, MaxSpeedN, 1, getDeviceName(), "MaxSpeed", "", FOCUS_SETTINGS_TAB, IP_RW, 0, IPS_IDLE);



Expand All @@ -81,8 +81,8 @@ bool PegasusProdigyMF::initProperties()
FocusAbsPosN[0].value = 0;
FocusAbsPosN[0].step = 1000;

FocusMaxPosN[0].max = 2000;
FocusMaxPosN[0].value = 2000;
FocusMaxPosN[0].max = 20000;
FocusMaxPosN[0].value = 20000;
FocusAbsPosN[0].min = 0;


Expand Down Expand Up @@ -223,15 +223,6 @@ bool PegasusProdigyMF::move(uint32_t newPosition)
return true;
}

bool PegasusProdigyMF::ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
{
if (dev != nullptr && strcmp(dev, getDeviceName()) == 0)
{

}
return INDI::Focuser::ISNewSwitch(dev, name, states, names, n);
}

bool PegasusProdigyMF::ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n)
{
if (dev != nullptr && strcmp(dev, getDeviceName()) == 0)
Expand Down
1 change: 0 additions & 1 deletion drivers/focuser/pegasus_prodigyMF.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class PegasusProdigyMF : public INDI::Focuser
virtual bool initProperties() override;
virtual bool updateProperties() override;
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override;
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override;

protected:
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override;
Expand Down

0 comments on commit 2800ce2

Please sign in to comment.