|
Re: [OCCRA]: Spikes on Cortex
I found a *slight* problem with this solution:
The digital IO pins are controlled by the user processor, not the master. Thus, when in disabled, the user still has control of the outputs. Why is this bad? You can fire your pneumatics when disabled.
It's still the only way to do it (BTW, it MUST be on the digital section, since those are the only ones that can be used as outputs), so just check if you're enabled before setting the pin high.
__________________
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
|