For multiple reasons I suggest subtracting the value of one pedal from the other to get your speed value. Example:
Code:
speed = ((int)left_pedal - (int)right_pedal)/2 + 127;
Now speed is like a joystick y-axis. As long as both the pedals are the same value (255, 127 etc) your robot should not move.