9#define LOG_STEPPER(this) \
10 ESP_LOGCONFIG(TAG, " Acceleration: %.0f steps/s^2", this->acceleration_); \
11 ESP_LOGCONFIG(TAG, " Deceleration: %.0f steps/s^2", this->deceleration_); \
12 ESP_LOGCONFIG(TAG, " Max Speed: %.0f steps/s", this->max_speed_);
70 float speed = this->speed_.value(
x...);
86 float acceleration = this->acceleration_.value(
x...);
101 float deceleration = this->deceleration_.value(
x...);
virtual void play(Ts... x)=0
TEMPLATABLE_VALUE(int32_t, position) void play(Ts... x) override
ReportPositionAction(Stepper *parent)
void play(Ts... x) override
TEMPLATABLE_VALUE(float, acceleration)
SetAccelerationAction(Stepper *parent)
SetDecelerationAction(Stepper *parent)
TEMPLATABLE_VALUE(float, deceleration)
void play(Ts... x) override
void play(Ts... x) override
SetSpeedAction(Stepper *parent)
TEMPLATABLE_VALUE(float, speed)
SetTargetAction(Stepper *parent)
TEMPLATABLE_VALUE(int32_t, target) void play(Ts... x) override
bool has_reached_target()
void set_max_speed(float max_speed)
virtual void on_update_speed()
uint32_t last_calculation_
void set_acceleration(float acceleration)
void report_position(int32_t steps)
void set_target(int32_t steps)
void set_deceleration(float deceleration)
void calculate_speed_(uint32_t now)
Providing packet encoding functions for exchanging data with a remote host.