As promised here:
http://www.chiefdelphi.com/forums/sh...778#post258778 I am starting a new thread to discuss what features the Default Code should really include.
Here is my list of good practice routines that I think IFI should include in future default codes:
- I have just been enabled
- I have just been disabled
- I have just entered autonomous mode
- I have just exited autonomous mode
- A timer and associated functions (reset, set to time, start, suspend, etc.)
- A future task scheduler: Pass it a pointer to a function that gets run at time T
- A step by step auton shell with examples of switches based on position of arms, orientation/position of robot, time, watch dog timers, etc
- Dual Wheel Encoders and associated functions (reset, CG position calculation, virtual compass, etc.)
- Support Smart motor controls (read Barello's comments on positive feedback of motor velocity to compensate for back EMF of motors, hysteresis, etc.)
- Support for PID control loops
- I have more, but not right now...
I don't expect the folks at IFI to fill in the details of these functions, but I think that it would be a good thing to have shell functions in place that gets called at the right times so that we can get a jump start on programming our robots.
Please add your own thoughts and comments on this topic.
Joe J.