|
Re: Programming disabled function
It is impossible to do in software.
You shouldn't worry about it moving. Depending on how your code is written, it might be beneficial to you to write the outputs even while disabled, so you can probe the logic and see what it is doing. That said, when exiting disabled, reset all controllers so it will not move after being enabled, until an input is given.
If it moves while disabled, that is mechanical backdrive.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|