mirror of
https://github.com/k3ng/k3ng_rotator_controller.git
synced 2024-12-18 20:57:56 +00:00
2021.10.13.01
FEATURE_STEPPER_MOTOR: Added OPTION_STEPPER_MOTOR_MAX_50_KHZ
This commit is contained in:
parent
fd355b2556
commit
027df6c342
@ -1015,6 +1015,9 @@
|
|||||||
OPTION_STEPPER_MOTOR_MAX_5_KHZ
|
OPTION_STEPPER_MOTOR_MAX_5_KHZ
|
||||||
OPTION_STEPPER_MOTOR_MAX_10_KHZ
|
OPTION_STEPPER_MOTOR_MAX_10_KHZ
|
||||||
OPTION_STEPPER_MOTOR_MAX_20_KHZ
|
OPTION_STEPPER_MOTOR_MAX_20_KHZ
|
||||||
|
|
||||||
|
2021.10.13.01
|
||||||
|
FEATURE_STEPPER_MOTOR: Added OPTION_STEPPER_MOTOR_MAX_50_KHZ
|
||||||
|
|
||||||
All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc.
|
All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc.
|
||||||
Anything rotator_*.* should be in the ino directory!
|
Anything rotator_*.* should be in the ino directory!
|
||||||
@ -1029,7 +1032,7 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CODE_VERSION "2021.10.12.01"
|
#define CODE_VERSION "2021.10.13.01"
|
||||||
|
|
||||||
|
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
@ -1507,22 +1510,27 @@ struct config_t {
|
|||||||
#endif //FEATURE_ELEVATION_CONTROL
|
#endif //FEATURE_ELEVATION_CONTROL
|
||||||
volatile unsigned long service_stepper_motor_pulse_pins_count = 0;
|
volatile unsigned long service_stepper_motor_pulse_pins_count = 0;
|
||||||
|
|
||||||
#if defined(OPTION_STEPPER_MOTOR_MAX_20_KHZ)
|
#if defined(OPTION_STEPPER_MOTOR_MAX_50_KHZ)
|
||||||
#define STEPPER_MOTOR_INTERRUPT_US 25 // 25 us = 40 khz
|
#define STEPPER_MOTOR_INTERRUPT_US 10 // 10 us = 100 khz
|
||||||
#define STEPPER_MOTOR_MAX_FREQ 20000
|
#define STEPPER_MOTOR_MAX_FREQ 50000
|
||||||
#else
|
#else
|
||||||
#if defined(OPTION_STEPPER_MOTOR_MAX_10_KHZ)
|
#if defined(OPTION_STEPPER_MOTOR_MAX_20_KHZ)
|
||||||
#define STEPPER_MOTOR_INTERRUPT_US 50 // 50 us = 20 khz
|
#define STEPPER_MOTOR_INTERRUPT_US 25 // 25 us = 40 khz
|
||||||
#define STEPPER_MOTOR_MAX_FREQ 10000
|
#define STEPPER_MOTOR_MAX_FREQ 20000
|
||||||
#else
|
#else
|
||||||
#if defined(OPTION_STEPPER_MOTOR_MAX_5_KHZ)
|
#if defined(OPTION_STEPPER_MOTOR_MAX_10_KHZ)
|
||||||
#define STEPPER_MOTOR_INTERRUPT_US 100 // 100 us = 10 khz
|
#define STEPPER_MOTOR_INTERRUPT_US 50 // 50 us = 20 khz
|
||||||
#define STEPPER_MOTOR_MAX_FREQ 5000
|
#define STEPPER_MOTOR_MAX_FREQ 10000
|
||||||
#else // OPTION_STEPPER_MOTOR_MAX_2_KHZ
|
#else
|
||||||
#define STEPPER_MOTOR_INTERRUPT_US 250 // 250 us = 4 khz
|
#if defined(OPTION_STEPPER_MOTOR_MAX_5_KHZ)
|
||||||
#define STEPPER_MOTOR_MAX_FREQ 2000
|
#define STEPPER_MOTOR_INTERRUPT_US 100 // 100 us = 10 khz
|
||||||
#endif
|
#define STEPPER_MOTOR_MAX_FREQ 5000
|
||||||
#endif
|
#else // OPTION_STEPPER_MOTOR_MAX_2_KHZ
|
||||||
|
#define STEPPER_MOTOR_INTERRUPT_US 250 // 250 us = 4 khz
|
||||||
|
#define STEPPER_MOTOR_MAX_FREQ 2000
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif //FEATURE_STEPPER_MOTOR
|
#endif //FEATURE_STEPPER_MOTOR
|
||||||
|
@ -182,4 +182,5 @@
|
|||||||
#define OPTION_STEPPER_MOTOR_MAX_2_KHZ
|
#define OPTION_STEPPER_MOTOR_MAX_2_KHZ
|
||||||
// #define OPTION_STEPPER_MOTOR_MAX_5_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_5_KHZ
|
||||||
// #define OPTION_STEPPER_MOTOR_MAX_10_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_10_KHZ
|
||||||
// #define OPTION_STEPPER_MOTOR_MAX_20_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_20_KHZ
|
||||||
|
// #define OPTION_STEPPER_MOTOR_MAX_50_KHZ
|
@ -168,4 +168,5 @@
|
|||||||
#define OPTION_STEPPER_MOTOR_MAX_2_KHZ
|
#define OPTION_STEPPER_MOTOR_MAX_2_KHZ
|
||||||
// #define OPTION_STEPPER_MOTOR_MAX_5_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_5_KHZ
|
||||||
// #define OPTION_STEPPER_MOTOR_MAX_10_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_10_KHZ
|
||||||
// #define OPTION_STEPPER_MOTOR_MAX_20_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_20_KHZ
|
||||||
|
// #define OPTION_STEPPER_MOTOR_MAX_50_KHZ
|
@ -195,6 +195,7 @@
|
|||||||
// #define OPTION_STEPPER_MOTOR_MAX_5_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_5_KHZ
|
||||||
// #define OPTION_STEPPER_MOTOR_MAX_10_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_10_KHZ
|
||||||
// #define OPTION_STEPPER_MOTOR_MAX_20_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_20_KHZ
|
||||||
|
// #define OPTION_STEPPER_MOTOR_MAX_50_KHZ
|
||||||
|
|
||||||
|
|
||||||
#define OPTION_CLI_VT100
|
#define OPTION_CLI_VT100
|
||||||
|
@ -160,3 +160,4 @@
|
|||||||
// #define OPTION_STEPPER_MOTOR_MAX_5_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_5_KHZ
|
||||||
// #define OPTION_STEPPER_MOTOR_MAX_10_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_10_KHZ
|
||||||
// #define OPTION_STEPPER_MOTOR_MAX_20_KHZ
|
// #define OPTION_STEPPER_MOTOR_MAX_20_KHZ
|
||||||
|
// #define OPTION_STEPPER_MOTOR_MAX_50_KHZ
|
||||||
|
Loading…
Reference in New Issue
Block a user