Here is how to calculate the resistor value:
-
The motor takes 1.7 amps at 3 volts. That means its winding resistance is (by Ohm's law V=IR) 3/1.7 = 1.8 Ohms.
-
The L298 H bridge will "consume" 3-4 volts, as it is very inefficient. Assuming the battery voltage is 11 V, about 11-3 = 8 volts maximum are available for the motor + resistor.
-
The current is 1 amp so the total resistance (motor plus resistor) should be 8V / 1A = 8 ohms.
-
That leaves 8-1.8 = 6.2 ohms for the resistor. That happens to be a standard value.
-
The power dissipated by the resistor is P = I^2 R = 6.2 watts. Choose a 10 watt resistor to be safe.