-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
44 lines (31 loc) · 1.07 KB
/
config.h
File metadata and controls
44 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef CONFIG_H
#define CONFIG_H
#include <math.h>
// The pins of the servos.
#define LEFT_SERVO_PIN 9
#define RIGHT_SERVO_PIN 8
// The distance between the servo axes in mm.
#define SHOULDER_SPACING 100.0
// The length of the upper and lower arms in mm.
#define UPPER_ARM_LENGTH 130.0
#define LOWER_ARM_LENGTH 275.0
// The maximum servo angles in deg.
// 0 deg. is parallel to the x - axis, - is upwards, + is downwards.
#define MIN_SHOULDER_ANGLE -10.0
#define MAX_SHOULDER_ANGLE 90.0
// The maximum angle between the upper and lower arms in degrees.
#define MAX_ELBOW_ANGLE 170.0
// The offset of the servo angles in degrees.
// - is upwards, + is downwards.
#define LEFT_SERVO_ANGLE_OFFSET 0.0
#define RIGHT_SERVO_ANGLE_OFFSET 5.0
// The range of the servo angles in degrees.
#define SERVO_ANGLE_RANGE 270.0
// The minimum and maximum pulse widths in microseconds.
#define SERVO_MIN_PULSE_WIDTH 500
#define SERVO_MAX_PULSE_WIDTH 2500
// The size of the interpolation steps in mm.
#define INTERPOLATION_STEP_SIZE 2.0
// The default speed in mm/s.
#define DEFAULT_SPEED 100
#endif