Bioscara
DALSA's DIY SCARA Robot Arm.
Loading...
Searching...
No Matches
lib
joint_firmware
joint
stall.h
Go to the documentation of this file.
1
12
#ifndef STALL_H
13
#define STALL_H
14
#include <stdlib.h>
15
16
namespace
bioscara_joint_firmware
{
23
float
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
bioscara_joint_firmware
Joint firmware.
Definition
filters.h:15
bioscara_joint_firmware::stall_threshold
float stall_threshold(float qd_rad, float offset)
computes the speed adaptive threshold.
Definition
stall.h:23
Generated by
1.9.8