This is a super-future task, but jawillis and I think it'd be really cool if you could script IOIO outputs
. It'd be even cooler if you could script them in pitside, then transmit the script to the phone during a race. Cool doesn't mean 'safe' or 'smart', but it'd be sooo awesome.
Imagine active aero:
if(accel < 0 or abs(latGs) > 0.4) // if we're braking or turning...
runOutput(14,true); // put wing to maximum angle of attack
// going straight or accelerating...
runOutput(14,false); // put wing to maximum flatness for max speed
Of course, this would be an advanced feature on top of an already-advanced feature (the IOIO), so this is uber-low-priority.