|
Re: Robot Jumping on Power Up
Quote:
|
Originally Posted by KenWittlief
If you have a competition port adapter connected you should power up in 'disabled' mode
I would have someone look at your code. It sounds like maybe you are using some motion smoothing algorythm, and one of the variables gets cleared to zero on powerup (instead of the last commanded or last output value)
in otherwords, you may have variables in your code that are not correctly initialized, so the first time through the loop you get an unexpected output.
PID control can be especially tricky to initialize, there may be several variables that would have to be initalized to the right value to get a 127 output on the first pass through the loop.
|
Ken,
I have this problem on PWMs which I do not use... If I attach a servo to them they jump after power up and then go to the "initialized" value of 127. My code (other than initialization) does not reference them but they will jump upon the next power up just the same...
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|