Bioscara
DALSA's DIY SCARA Robot Arm.
Loading...
Searching...
No Matches
stall.h
Go to the documentation of this file.
1
12#ifndef STALL_H
13#define STALL_H
14#include <stdlib.h>
15
23float stall_threshold(float qd_rad, float offset) {
24 /* y = ax + b */
25 float a = STALL_SLOPE;
26 float b = offset;
27 if ((abs(qd_rad) >= STALL_WINDOW_B1) && (abs(qd_rad) <= STALL_WINDOW_B2)) {
28 b += STALL_WINDOW_OFFSET;
29 }
30 return a * qd_rad + b;
31}
32}
33#endif
Joint firmware.
Definition filters.h:15
float stall_threshold(float qd_rad, float offset)
computes the speed adaptive threshold.
Definition stall.h:23