Bætti við interrupt (pin D2) til að skoða encoder lestur, umb fyrir Part 1 í verkefni
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user