more precise movements

This commit is contained in:
2020-03-20 14:28:53 +03:00
parent 29db5fa278
commit 15c63a3d8f
2 changed files with 25 additions and 31 deletions

View File

@@ -6,6 +6,8 @@ constexpr unsigned int stsUpdDelay{10};
constexpr float defRPM{2}, defEggLength{60}, defEggDia{45}, xLimit{85};
constexpr float defYDegPerMM{360 / (PI * defEggDia)},
defXDegPerMM{xLimit / defEggLength};
constexpr int adjustDelay{100};
constexpr int timer2Div {8};
constexpr int ticksPerSecond{F_CPU / (timer2Div * 255)};
#endif