by petej » Wed Nov 19, 2008 7:23 am
by petej
Wed Nov 19, 2008 7:23 am
Wow, thanks for your responses!
The set of values used for this drawing are:
servo IDs:
{ 3, 7, 11, 13, 15, }
servo positions:
{ 0x0131, 0x02d3, 0x012d, 0x02d9, 0x0201 },
{ 0x00be, 0x0342, 0x00bc, 0x034c, 0x0202 },
{ 0x00ef, 0x0342, 0x00f0, 0x0343, 0x0298 },
{ 0x0176, 0x0290, 0x0179, 0x028f, 0x026c },
The order of the IDs above is in ascending order. The real order of the servos, from CM-5 out, is 15, 11, 3, 13, 7. I didn't put them in order in this post (which would make entering them easier I'm sure) because I didn't want to risk adding copy/paste errors.
MAX_DELTA is constant at 0x3ff, not the max of the current deltas. The problem I figured with using the max of the current deltas is that when I scaled up the normalized values for speed, a small max delta could end up driving at full speed causing massive overshoot. I'll give this a whirl anyway.
bullit: Thanks for the link. Those plotters were actually my "inspiration", but I wanted to stick with C.
Wow, thanks for your responses!
The set of values used for this drawing are:
servo IDs:
{ 3, 7, 11, 13, 15, }
servo positions:
{ 0x0131, 0x02d3, 0x012d, 0x02d9, 0x0201 },
{ 0x00be, 0x0342, 0x00bc, 0x034c, 0x0202 },
{ 0x00ef, 0x0342, 0x00f0, 0x0343, 0x0298 },
{ 0x0176, 0x0290, 0x0179, 0x028f, 0x026c },
The order of the IDs above is in ascending order. The real order of the servos, from CM-5 out, is 15, 11, 3, 13, 7. I didn't put them in order in this post (which would make entering them easier I'm sure) because I didn't want to risk adding copy/paste errors.
MAX_DELTA is constant at 0x3ff, not the max of the current deltas. The problem I figured with using the max of the current deltas is that when I scaled up the normalized values for speed, a small max delta could end up driving at full speed causing massive overshoot. I'll give this a whirl anyway.
bullit: Thanks for the link. Those plotters were actually my "inspiration", but I wanted to stick with C.