|
340 | 340 | #ifndef AZ_ROD_PITCH |
341 | 341 | #define AZ_ROD_PITCH 0.5 |
342 | 342 | #endif |
343 | | - #define AZIMUTH_STEPS_PER_REV + \ |
344 | | - (AZ_CORRECTION_FACTOR * (AZ_CIRCUMFERENCE / AZ_ROD_PITCH) * AZ_STEPPER_SPR * AZ_MICROSTEPPING) // Actually u-steps/rev |
| 343 | + #define AZIMUTH_STEPS_PER_REV \ |
| 344 | + +(AZ_CORRECTION_FACTOR * (AZ_CIRCUMFERENCE / AZ_ROD_PITCH) * AZ_STEPPER_SPR * AZ_MICROSTEPPING) // Actually u-steps/rev |
345 | 345 | #else |
346 | 346 | #define AZ_CIRCUMFERENCE 2538.4f |
347 | 347 | #endif |
348 | 348 | #endif |
349 | | - |
350 | 349 |
|
351 | 350 | #ifndef OAE |
352 | 351 | #define AZ_WORMGEAR_RATIO 1.0f |
|
357 | 356 | (AZ_CORRECTION_FACTOR * (AZ_CIRCUMFERENCE / (AZ_PULLEY_TEETH * GT2_BELT_PITCH)) * AZ_STEPPER_SPR \ |
358 | 357 | * AZ_MICROSTEPPING) // Actually u-steps/rev |
359 | 358 | #endif |
360 | | - |
| 359 | + |
361 | 360 | #ifndef AZIMUTH_STEPS_PER_ARC_MINUTE |
362 | 361 | #define AZIMUTH_STEPS_PER_ARC_MINUTE (AZIMUTH_STEPS_PER_REV / (360 * 60.0f)) // Used to determine move distance in steps |
363 | 362 | #endif |
|
416 | 415 | #define ALTITUDE_STEPS_PER_REV \ |
417 | 416 | (ALT_CORRECTION_FACTOR * (ALT_CIRCUMFERENCE / ALT_ROD_PITCH) * ALT_STEPPER_SPR * ALT_MICROSTEPPING) // Actually u-steps/rev |
418 | 417 |
|
419 | | - #else |
| 418 | + #else |
420 | 419 | #ifdef OAE |
421 | 420 | #ifndef ALT_ROD_PITCH |
422 | 421 | #define ALT_ROD_PITCH 1.25 // mm/rev |
423 | 422 | #endif |
424 | 423 | // the Circumference of the ALT rotation. Roughly 146mm radius. |
425 | 424 | #define ALT_CIRCUMFERENCE 130.0f * 2 * PI |
426 | | - #define ALTITUDE_STEPS_PER_REV + \ |
427 | | - (ALT_CORRECTION_FACTOR * (ALT_CIRCUMFERENCE / ALT_ROD_PITCH) * ALT_STEPPER_SPR * ALT_MICROSTEPPING) // Actually u-steps/rev |
| 425 | + #define ALTITUDE_STEPS_PER_REV \ |
| 426 | + +(ALT_CORRECTION_FACTOR * (ALT_CIRCUMFERENCE / ALT_ROD_PITCH) * ALT_STEPPER_SPR \ |
| 427 | + * ALT_MICROSTEPPING) // Actually u-steps/rev |
428 | 428 | #else |
429 | 429 | // the Circumference of the AZ rotation. 770mm dia. |
430 | 430 | #define ALT_CIRCUMFERENCE 2419.0f |
|
436 | 436 | #define ALT_WORMGEAR_RATIO (40.0f) |
437 | 437 | #endif |
438 | 438 | #ifndef ALTITUDE_STEPS_PER_REV |
439 | | - #define ALTITUDE_STEPS_PER_REV \ |
440 | | - (ALT_CORRECTION_FACTOR * (ALT_CIRCUMFERENCE / (ALT_PULLEY_TEETH * GT2_BELT_PITCH)) * ALT_STEPPER_SPR * ALT_MICROSTEPPING \ |
441 | | - * ALT_WORMGEAR_RATIO) // Actually u-steps/rev |
| 439 | + #define ALTITUDE_STEPS_PER_REV \ |
| 440 | + (ALT_CORRECTION_FACTOR * (ALT_CIRCUMFERENCE / (ALT_PULLEY_TEETH * GT2_BELT_PITCH)) * ALT_STEPPER_SPR \ |
| 441 | + * ALT_MICROSTEPPING * ALT_WORMGEAR_RATIO) // Actually u-steps/rev |
442 | 442 | #endif |
443 | 443 | #endif |
444 | 444 | #endif |
|
649 | 649 | // //////// |
650 | 650 | //////////////////////////////////////////// |
651 | 651 |
|
652 | | - |
653 | 652 | // Focuser |
654 | 653 | #if (FOCUS_DRIVER_TYPE == DRIVER_TYPE_TMC2209_UART) |
655 | 654 | #if defined(ESP32) |
|
0 commit comments