Bætti við interrupt (pin D2) til að skoða encoder lestur, umb fyrir Part 1 í verkefni

This commit is contained in:
2026-10-14 16:02:44 +00:00
parent 1250860efe
commit b90b84d94c
4 changed files with 31 additions and 8 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class State;
class MotorController
{
private:
static constexpr double DEFAULT_REFERENCE_RPM = 40.0;
static constexpr double DEFAULT_REFERENCE_RPM = -40.0;
static constexpr double PWM_PER_PERCENT = 255.0 / 100.0;
//static const uint8_t LED_PIN = 5; // PB5 = D13 = LED_BUILTIN
static constexpr uint8_t LED_PIN = Digital_out::STATUS_LED;
+1 -1
View File
@@ -7,7 +7,7 @@
// Sett á 1 til að prenta CSV (time_ms,ref_rpm,actual_rpm,pwm) í Operational,
// t.d. fyrir step og load response. Einnig hægt með build_flags = -D LOG_CSV=1
#ifndef LOG_CSV
#define LOG_CSV 1
#define LOG_CSV 0
#endif