- remove m_pwm_offset_adjustment;
- offset now adjusted in pid_control loop; - pid sampling time depends on speed step; - speed table implemented & and init function;
This commit is contained in:
1 parent
330d42a17e
commit
ad570fba35
6 files changed
+141
-168
No files matched your search
@@ -9,14 +9,12 @@
|
||||
#include "string.h"
|
||||
#include "pico/stdlib.h"
|
||||
#include "pico/multicore.h"
|
||||
#include "pico/util/queue.h"
|
||||
#include "hardware/pwm.h"
|
||||
#include "hardware/adc.h"
|
||||
#include "hardware/flash.h"
|
||||
#include "hardware/irq.h"
|
||||
#define _125M 125000000
|
||||
#define ADC_OFFSET 13
|
||||
#define DCC_INPUT_PIN 4u
|
||||
#define DCC_INPUT_PIN 9u
|
||||
#define MOTOR_FWD_PIN 22u
|
||||
#define MOTOR_REV_PIN 23u
|
||||
#define FWD_V_EMF_ADC_PIN 26u
|
||||
|
||||
Reference in new issue
Block a user