Simplify get_speed_step_table_index_of_speed_step(); Removed unnecessary parameter from adjust_pwm_level function; Removed some redundant else statements and redundant "== true" from some expressions; Fixed reset_message_check() function; Added const to some function parameters and local variables;

This commit is contained in:
gk6394s committed 2024-01-02 12:56:25 +01:00
1 parent 9ee13b67e7
commit 8fb10e212e
3 files changed
+53 -58

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ typedef struct pid_params{
uint8_t get_speed_step_table_index_of_speed_step(uint8_t speed_step);
bool speed_helper(struct repeating_timer *t);
void adjust_pwm_level(uint16_t level, const pid_params *pid);
void adjust_pwm_level(uint16_t level);
void update_m(pid_params *pid);
void update_y(pid_params *pid,float i);
float get_ff_val(const pid_params *pid);