The crane is moving with constant horizontal velocity. Hence the vector sum of the horizontal forces is zero, that is
$$\vec{F}_{resistance}+\vec{F}_{driving}=\vec{0}$$
In order to transform the above vector equation to an algebraic equation , you have to be careful with signs and conventions. If we make the convention that the positive direction is towards right , then $$\vec{F}_{driving}=\frac{P}{v}\hat x$$ that is it is positive force, but $$\vec{F}_{resistance}=-Cv^2\hat x-\mu mg\hat x$$, that is it is negative (towards the left).
Thus the initial vector equation will transform to the algebraic equation
$$-Cv^2-\mu mg+\frac{P}{v}=0$$ which you can solve for ##\mu## and you will get what you saying at post #3.