mirror of
https://github.com/k3ng/k3ng_rotator_controller.git
synced 2025-03-13 15:46:26 +00:00
move 220V en before L/R
This commit is contained in:
parent
f5c6e89736
commit
3b17751900
@ -10113,6 +10113,9 @@ void rotator(byte rotation_action, byte rotation_type, byte traceback) {
|
||||
}
|
||||
#endif //FEATURE_STEPPER_MOTOR
|
||||
}
|
||||
if (rotate_cw_ccw){
|
||||
digitalWriteEnhanced(rotate_cw_ccw, ROTATE_PIN_AZ_ACTIVE_VALUE);
|
||||
}
|
||||
if (rotate_cw) {
|
||||
digitalWriteEnhanced(rotate_cw, ROTATE_PIN_AZ_ACTIVE_VALUE);
|
||||
#if defined(pin_led_cw)
|
||||
@ -10125,9 +10128,6 @@ void rotator(byte rotation_action, byte rotation_type, byte traceback) {
|
||||
digitalWriteEnhanced(pin_led_ccw, PIN_LED_INACTIVE_STATE);
|
||||
#endif
|
||||
}
|
||||
if (rotate_cw_ccw){
|
||||
digitalWriteEnhanced(rotate_cw_ccw, ROTATE_PIN_AZ_ACTIVE_VALUE);
|
||||
}
|
||||
#ifdef DEBUG_ROTATOR
|
||||
if (debug_mode) {
|
||||
debug.print(F(" normal_az_speed_voltage:"));
|
||||
@ -10153,15 +10153,15 @@ void rotator(byte rotation_action, byte rotation_type, byte traceback) {
|
||||
if (rotate_cw_ccw_pwm) {
|
||||
analogWriteEnhanced(rotate_cw_ccw_pwm, 0);
|
||||
}
|
||||
if (rotate_cw_ccw){
|
||||
digitalWriteEnhanced(rotate_cw_ccw, ROTATE_PIN_AZ_INACTIVE_VALUE);
|
||||
}
|
||||
if (rotate_cw) {
|
||||
digitalWriteEnhanced(rotate_cw, ROTATE_PIN_AZ_INACTIVE_VALUE);
|
||||
#if defined(pin_led_cw)
|
||||
digitalWriteEnhanced(pin_led_cw, PIN_LED_INACTIVE_STATE);
|
||||
#endif
|
||||
}
|
||||
if (rotate_cw_ccw){
|
||||
digitalWriteEnhanced(rotate_cw_ccw, ROTATE_PIN_AZ_INACTIVE_VALUE);
|
||||
}
|
||||
if (rotate_cw_freq) {
|
||||
noTone(rotate_cw_freq);
|
||||
}
|
||||
@ -10235,6 +10235,10 @@ void rotator(byte rotation_action, byte rotation_type, byte traceback) {
|
||||
}
|
||||
#endif //FEATURE_STEPPER_MOTOR
|
||||
}
|
||||
|
||||
if (rotate_cw_ccw){
|
||||
digitalWriteEnhanced(rotate_cw_ccw, ROTATE_PIN_AZ_ACTIVE_VALUE);
|
||||
}
|
||||
if (rotate_cw) {
|
||||
digitalWriteEnhanced(rotate_cw, ROTATE_PIN_AZ_INACTIVE_VALUE);
|
||||
#if defined(pin_led_cw)
|
||||
@ -10246,10 +10250,7 @@ void rotator(byte rotation_action, byte rotation_type, byte traceback) {
|
||||
#if defined(pin_led_ccw)
|
||||
digitalWriteEnhanced(pin_led_ccw, PIN_LED_ACTIVE_STATE);
|
||||
#endif
|
||||
}
|
||||
if (rotate_cw_ccw){
|
||||
digitalWriteEnhanced(rotate_cw_ccw, ROTATE_PIN_AZ_ACTIVE_VALUE);
|
||||
}
|
||||
}
|
||||
#ifdef DEBUG_ROTATOR
|
||||
if (debug_mode) {
|
||||
debug.print(F(" normal_az_speed_voltage:"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user