added assertions around invalid motor speeds