I decided to let a crazy German run amok in my code this year.. It beats the mute from last year that didn't explain anything at all
Code:
void normalize_motors(unsigned char left, unsigned char right) {
// Vait!! Dat's der vrong direction
// -- Inverse the polarity if required
left = (INVERT_LEFT ? 255 - left : left);
right = (INVERT_RIGHT ? 255 - right : right);
// Vut da hell ist up wiv dat der blinkin lighten
// -- Keep the controller from resting by stopping the magic word
left = (left == 255 ? 254 : left);
right = (right == 255 ? 254 : right);
// Vee vill tell das utters vhere vee vent
// -- Keep this information, it may be useful
left_reverse = (left < 127 ? -1 : 1);
right_reverse = (right < 127 ? -1 : 1);
// Und zee motors spin vround und vround
// -- Final output goes to motors
Generate_Pwms( 127, 127, left, right);
LEFT_MOTOR = right;
RIGHT_MOTOR = right;
}