Skip to content

Commit

Permalink
Update GyverPlanner.h
Browse files Browse the repository at this point in the history
  • Loading branch information
GyverLibs committed Feb 9, 2022
1 parent a46bbb9 commit 108cd8f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/GyverPlanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,20 +383,21 @@ class GPlanner {
}

#ifdef GS_FAST_PROFILE
// массивы шагов и периодов для быстрого профиля скорости
uint32_t prfS[GS_FAST_PROFILE], prfP[GS_FAST_PROFILE];
#endif

uint32_t us;
int32_t tar[_AXLES], nd[_AXLES], dS[_AXLES];
int32_t step, substep, S, s1, s2, so1;
uint32_t tmr, us0, usMin, us10;
uint16_t a, na;
int16_t stopStep;
float V, nV;
uint8_t status = 0, speedAxis = 0;
uint8_t shift = 0;
uint32_t us; // период шагов
int32_t tar[_AXLES], nd[_AXLES], dS[_AXLES]; // цель, переменная Брезенхема, смещение по оси
int32_t step, substep, S, s1, s2, so1; // шаги на текущем участке, дробные шаги, длина участка, (s1,s2,so1) - для расчёта трапеций
uint32_t tmr, us0, usMin, us10; // таймер тика, время первого шага, мин. период шага, сдвинутый на 10 us
uint16_t a, na; // ускорение, буфер ускорения для применения после остановки
int16_t stopStep; // шагов до остановки
float V, nV; // скорость, буфер скорости для применения после остановки
uint8_t status = 0, speedAxis = 0; // статус, ось в режиме скорости
uint8_t shift = 0; // сдвиг для повышения разрешения Брезенхема
bool readyF = true;
bool changeSett = 0;
bool changeSett = 0; // флаг, что изменились настройки
Stepper<_DRV>* steppers[_AXLES];
};
#endif

0 comments on commit 108cd8f

Please sign in to comment.