Small update

This commit is contained in:
Marius Muja 2024-01-20 17:03:15 -08:00
parent 37637be2cd
commit e7e8fcac6d
1 changed files with 1 additions and 1 deletions

View File

@ -326,8 +326,8 @@ namespace ratgdo {
return;
}
auto position = this->door_start_position + (now - this->door_start_moving) / (1000 * duration);
ESP_LOG2(TAG, "[%d] Position update: %f", now, position);
this->door_position = clamp(position, 0.0f, 1.0f);
ESP_LOG2(TAG, "[%d] Position update: %f", now, *this->door_position);
}
void RATGDOComponent::set_opening_duration(float duration)