         {
             break;
         }
-        delay(5);
+        delay(100);
         // #ifdef DEBUG
         //         String str = "waiting:";
         //         str += _sys.statesIndex;

#define STATES_COUNT 6
#define COMMANDS_COUNT 6
#define POINTS_COUNT 6
#define PULSES_PER_MM 50
#define CURVE_SECTION 0.5
#define NUM_STEPS 100
#define NUM_AXIS 2
#define DEBUG 1
enum MOTION_STATE
{
    MOTION_ACCELETING = 0,
    MOTION_DECELETING,
    MOTION_NORMAL
};
// #define DEBUG true
struct MotionState
{
    uint8_t power = 0;

    {
        _sys.isRunningState = MOTION_DECELETING;
    }
    if (tt % 4 == 0)
    {
        switch (_sys.isRunningState)
        {
