Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philip A Levis
EE185
Commits
592b2927
Commit
592b2927
authored
Dec 12, 2019
by
Mihir Garimella
Browse files
Motor driver fix
parent
c6ff0e86
Changes
1
Show whitespace changes
Inline
Side-by-side
fall-beta/motion.py
View file @
592b2927
...
...
@@ -32,7 +32,7 @@ class DirectionalMotor:
self
.
up_high_output
.
value
=
speed
>=
0.0
self
.
down_high_output
.
value
=
not
self
.
up_high_output
.
value
speed
=
(
speed
=
abs
(
speed
*
(
self
.
max_duty_cycle
-
self
.
min_duty_cycle
)
+
self
.
min_duty_cycle
)
self
.
motor
.
duty_cycle
=
int
(
speed
*
32767
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment