Quote:
Originally Posted by eagle33199
that seems like an OK way to do it... what might end up being easier, though, is to just do something like:
#define leftMotor pwm01
#define rightMotor pwm02
then you can use your left and right motors wherever you want, and if someone plugs something in backwards and doesn't want to unplug it you just have to change it in the one location in the header file. Just another option to consider!
|
That's what I have currently, and I've debating if I should use a more OO approach, which I'm still not sure of. Just brain storming
