Skip to content

Commit de38270

Browse files
Merge pull request #297 from srobo/motor-power-value
Motor power isn't an integer
2 parents f8890cd + 384f4c2 commit de38270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programming/sr/motors/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ R.motor_boards["srABC1"].something...
3939
Setting motor power
4040
-------------------
4141

42-
Motor power is controlled using [PWM](https://en.wikipedia.org/wiki/Pulse-width_modulation) with 100% power being a [duty cycle](https://en.wikipedia.org/wiki/Duty_cycle) of 1. You set the power with an integer value between -1 and 1 inclusive. Fractional values (such as 0.42) can be used to specify less than 100% power. Negative values run the motor in the opposite direction.
42+
Motor power is controlled using [PWM](https://en.wikipedia.org/wiki/Pulse-width_modulation) with 100% power being a [duty cycle](https://en.wikipedia.org/wiki/Duty_cycle) of 1. You set the power with a value between -1 and 1 inclusive. Fractional values (such as 0.42) can be used to specify less than 100% power. Negative values run the motor in the opposite direction.
4343

4444
The field to change the output power is `power`. As each Motor Board has two outputs you will need to specify which output you want to control:
4545

0 commit comments

Comments
 (0)