Making More Time???
Ok maybe this is a rookie question... but the code for transmitting the raw materials consists of 2 word size variables that are broken down into 4 bytes and sent to the reciever. At that rate I guess we're pushing 43ms or so between servo pulses with is our high end so we've got to weazel our way into being able to fit in extra code of sensors etc.
··· Would it save us any time by doing the offset and scaling before transmitting as to only send 2 byte size variables instead of 4?
·
··· Would it save us any time by doing the offset and scaling before transmitting as to only send 2 byte size variables instead of 4?
·
Comments
1) You can split up the work into two servo cycles. Send half of the data after the first servo pulse, then send half the data and a second servo pulse. You may just want to repeat the width of the first pulse for the second pulse. That may reduce the speed of change, but usually it won't matter.
2) You can add an external helper like a ServoPAL if you only have one or two servos or a Parallax Servo Controller if you have more than two. This'll take the whole burden of generating servo pulses off the Stamp.
3) You can do things like offsetting and scaling to reduce the size of the data to be sent.