Skip to content

Commit f205681

Browse files
Use percentage
Co-authored-by: Will Barber <WillB97@users.noreply.github.com>
1 parent 35afc9f commit f205681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/basic-movement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You're familiar with the first few lines; in fact, the only lines you may not be
3939

4040
But, to summarise:
4141

42-
`r.motor_board.motors[0].power = 0.5` sets the target power of the motor connected to output 0 on the first [motor board](../kit/motor-board.md) to half speed forwards (i.e. a duty-cycle of 0.5 forwards). As you would expect, then, `-0.5` will put this motor into reverse at half power.
42+
`r.motor_board.motors[0].power = 0.5` sets the target power of the motor connected to output 0 on the first [motor board](../kit/motor-board.md) to half speed forwards (i.e. a duty-cycle of 50% forwards). As you would expect, then, `-0.5` will put this motor into reverse at half power.
4343
`r.motor_board.motors[0].power = 0` will brake the motor and stop it.
4444

4545
So, if you put the above code on your robot, you should be able to see a motor spin forwards, stop, spin backwards, stop, and then repeat...

0 commit comments

Comments
 (0)