File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 82
82
#define MIN_PULSE_WIDTH 544 // the shortest pulse sent to a servo
83
83
#define MAX_PULSE_WIDTH 2400 // the longest pulse sent to a servo
84
84
#define DEFAULT_PULSE_WIDTH 1500 // default pulse width when servo is attached
85
+
86
+ // default frequency - servos within kits
87
+ // 20000µs/1000000µs = 0.02s
88
+ // 1/0.02s = 50Hz
89
+
90
+ // higher end servos - remote control servos --- typical 333Hz
91
+ // 1/333Hz = 0.003003s * 1000000µs = 3003µs for a refesh rate
85
92
#define REFRESH_INTERVAL 20000 // minimum time to refresh servos in microseconds
86
- // 20000µs/1000000µs = 0.02s
87
- // 1/0.02s = 50Hz
88
- // 1/333Hz = 0.003003s * 1000000µs = 3003µs for a refesh rate
93
+
89
94
90
95
#define SERVOS_PER_TIMER 12 // the maximum number of servos controlled by one timer
91
96
#define MAX_SERVOS (_Nbr_16timers * SERVOS_PER_TIMER)
You can’t perform that action at this time.
0 commit comments