[python/turtle] Tune values of the turtle speed

This commit is contained in:
Léa Saviot
2018-12-11 14:46:44 +01:00
parent 91c4fea517
commit 306869edca
2 changed files with 2 additions and 2 deletions

View File

@@ -293,7 +293,7 @@ bool Turtle::draw(bool force) {
}
if (m_mileage > 1000) {
if (micropython_port_interruptible_msleep(1 + (m_speed == 0 ? 0 : k_maxSpeed * (k_maxSpeed - m_speed)))) {
if (micropython_port_interruptible_msleep(1 + (m_speed == 0 ? 0 : 3 * (k_maxSpeed - m_speed)))) {
return true;
}
m_mileage -= 1000;

View File

@@ -79,7 +79,7 @@ private:
static constexpr int k_invertedYAxisCoefficient = -1;
static constexpr KDCoordinate k_xOffset = Ion::Display::Width / 2;
static constexpr KDCoordinate k_yOffset = (Ion::Display::Height - Metric::TitleBarHeight) / 2;
static constexpr uint8_t k_defaultSpeed = 3;
static constexpr uint8_t k_defaultSpeed = 8;
static constexpr uint8_t k_maxSpeed = 10;
static constexpr KDColor k_defaultColor = KDColorBlack;
static constexpr uint8_t k_defaultPenSize = 1;