- 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:
1nct committed 2022-03-12 10:23:51 +01:00
1 parent 330d42a17e
commit ad570fba35
6 files changed
+141 -168

No files matched your search

+4 -3
View File
@@ -6,11 +6,12 @@
#pragma once
#include "shared.h"
#include <math.h>
uint16_t calc_end_target();
bool speed_helper();
void adjust_pwm_level(uint16_t level);
void init_offsets(uint16_t lvl_max);
uint32_t offset();
bool pid_control(struct repeating_timer *t);
void init_speed_table();
void init_pid();
void init_motor_pwm(uint8_t gpio);
void init_msr();
void init_motor_pwm(uint8_t gpio);