Quote:
|
Originally Posted by Raven_Writer
Well, since RoboEmu2 just came out not to long ago, there are still some bugs that are not fixed (I'm not sure how long Rob was working on it [testing, debugging, etc...] before releasing it). What does it show when you put the joystick in full forward in both RoboEmu & the Dashboard?
|
I wondered about bugs in RoboEmu2, but I discarded the idea, since the code seems like it should work. When I move the joystick full forward in RoboEmu2, I get 254 on both PWMs, which makes sense. When I move the joystick full forward on the RC, pwm15 goes to 254. If I twist the wheel back and forth, and let it recenter, maybe only pwm16 will go to 254. It's very sporatic.
Quote:
|
Originally Posted by Alan Anderson
How often are you calling the Generate_Pwms() function?
PWMs 13-16 are special. They get generated directly from the RC's "user" processor, so they can be updated more quickly than the communication with the "master" processor occurs. If you never call Generate_Pwms(), they don't update. But if they get updated too quickly, they get squirrely.
|
I'm pretty sure that I have Generate_Pwms() at the bottom of the 26.2ms routine, but I'll check for sure on Tuesday. That is where I'm supposed to call it, no?
Quote:
|
Originally Posted by Mark McLeod
I suspect variable overflow.
LEFT and RIGHT are pretty restricted.
|
How do you mean?