Quote:
2. if you output 255 to any PWM in your code, then the serial out link looses sync, and the data will no longer be going to the right devices- PWM data may end up going to relay spikes, PWMs may use the wrong PWM outputs. You should always use the
drive= (2000+drive)min 2000 max 2254)-2000
line right before your serial out section, for all your PWM variables, if there is ANY chance the math your SW uses might end up with 255 in a PWM variable.
|
Could you elaborate on this? I have seen some "interesting" behavior when output a 255 in a serin. Is there something in the documentation that says not to do this? Is this a best guess as to why wierd behavior results (ie losing sync)?