Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Fonseca Yarochewsky
2014-15
Commits
857c7c05
Commit
857c7c05
authored
May 15, 2015
by
Thomas Pryor
Browse files
Create handControl.ino
parent
b4277c3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Arduino Code/masterCode/handControl.ino
0 → 100644
View file @
857c7c05
void
writeToHandMotors
()
{
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
Serial
.
print
(
"Hand: "
);
Serial
.
print
(
i
);
Serial
.
println
(
hand
[
i
]);
if
(
hand
[
i
]
==
0
||
hand
[
i
]
==
2
)
{
if
(
hand
[
i
]
==
0
&&
handPos
[
i
]
<
180
)
{
handPos
[
i
]
+=
5
;
}
else
if
(
handPos
[
i
]
>
0
)
{
handPos
[
i
]
-=
5
;
}
handMotor
[
i
].
write
(
handPos
[
i
]);
}
}
}
Write
Preview
Markdown
is supported
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