Skip to content

Commit e85ee3c

Browse files
V1.8.06 - Updates
- DEC axis was inadvertently inverted by default after merge. Fixed. - Guide pulses were not 2x sidereal and 0 for default steppers. Fixed.
1 parent 8021d14 commit e85ee3c

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

Software/Arduino code/OpenAstroTracker/Configuration.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
=======================================================================================================================================
1919
*/
2020

21-
String version = "V1.8.05";
21+
String version = "V1.8.06";
2222

2323
///////////////////////////////////////////////////////////////////////////
2424
// Also use Configuration_adv for further adjustments!

Software/Arduino code/OpenAstroTracker/Configuration_adv.hpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
// INVERT AXIS
6464
// Set to 1 or 0 to invert motor directions
6565
#define INVERT_RA_DIR 0
66-
#define INVERT_DEC_DIR 1
66+
#define INVERT_DEC_DIR 0
6767
//
6868
//
6969
////////////////////////////
@@ -78,8 +78,13 @@
7878
// GUIDE SETTINGS
7979
// This is the multiplier of the normal trackingspeed that a pulse will have
8080
// standard value: RA 2.2; DEC 1.2
81+
#if RA_STEPPER_TYPE == STEP_28BYJ48
82+
#define RA_PULSE_MULTIPLIER 2.0
83+
#define DEC_PULSE_MULTIPLIER 1.0
84+
#else
8185
#define RA_PULSE_MULTIPLIER 1.5
82-
//#define DEC_PULSE_MULTIPLIER 1.2
86+
#define DEC_PULSE_MULTIPLIER 1.2
87+
#endif
8388

8489

8590

Software/Arduino code/OpenAstroTracker/Mount.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -854,15 +854,15 @@ void Mount::guidePulse(byte direction, int duration) {
854854
switch (direction) {
855855
case NORTH:
856856
_stepperDEC->setAcceleration(2500);
857-
_stepperDEC->setMaxSpeed(decTrackingSpeed * 1.2);
858-
_stepperDEC->setSpeed(decTrackingSpeed);
857+
_stepperDEC->setMaxSpeed(decTrackingSpeed * (DEC_PULSE_MULTIPLIER + 0.2));
858+
_stepperDEC->setSpeed(decTrackingSpeed * DEC_PULSE_MULTIPLIER);
859859
_mountStatus |= STATUS_GUIDE_PULSE | STATUS_GUIDE_PULSE_DEC;
860860
break;
861861

862862
case SOUTH:
863863
_stepperDEC->setAcceleration(2500);
864-
_stepperDEC->setMaxSpeed(decTrackingSpeed * 1.2);
865-
_stepperDEC->setSpeed(-decTrackingSpeed);
864+
_stepperDEC->setMaxSpeed(decTrackingSpeed * (DEC_PULSE_MULTIPLIER + 0.2));
865+
_stepperDEC->setSpeed(-decTrackingSpeed * DEC_PULSE_MULTIPLIER);
866866
_mountStatus |= STATUS_GUIDE_PULSE | STATUS_GUIDE_PULSE_DEC;
867867
break;
868868

@@ -874,8 +874,12 @@ void Mount::guidePulse(byte direction, int duration) {
874874

875875
case EAST:
876876
_stepperTRK->setMaxSpeed(raTrackingSpeed * (RA_PULSE_MULTIPLIER + 0.2));
877-
//_stepperTRK->setSpeed(raTrackingSpeed + (-RA_PULSE_MULTIPLIER * (raTrackingSpeed / 2.0)));
878-
_stepperTRK->setSpeed(0.6 * raTrackingSpeed);
877+
#if RA_STEPPER_TYPE == STEP_28BYJ48
878+
_stepperTRK->setSpeed(0);
879+
#else
880+
// Not sure why we don't stop tracking with NEMAs as is customary.....
881+
_stepperTRK->setSpeed(0.6 * raTrackingSpeed);
882+
#endif
879883
_mountStatus |= STATUS_GUIDE_PULSE | STATUS_GUIDE_PULSE_RA;
880884
break;
881885
}

0 commit comments

Comments
 (0)