Changes
Page history
Update Overview
authored
Mar 30, 2022
by
Reid Schneyer
Hide whitespace changes
Inline
Side-by-side
Test-Stand/Overview.md
View page @
695e2663
...
...
@@ -95,13 +95,15 @@ void loop() {
double
relativeDegrees
=
TEN_BIT_SCALAR
*
(
double
)
homePosition
;
double
displayPosition
=
absoluteDegrees
-
relativeDegrees
;
displayPosition
+=
(
displayPosition
<
0
)
?
(
360
)
:
(
0
);
if
(
NO_HANDSHAKE
)
{
Serial
.
println
(
displayPosition
);
}
else
if
(
Serial
.
available
()
>
0
&&
Serial
.
read
()
==
SEND_CODE
)
{
Serial
.
println
(
"DEBUG"
);
Serial
.
println
(
displayPosition
);
}
// if (NO_HANDSHAKE) {
// Serial.println(displayPosition);
// }
// else if (Serial.available() > 0 && Serial.read() == SEND_CODE) {
// Serial.println("DEBUG");
// Serial.println(displayPosition);
// }
Serial
.
println
(
displayPosition
);
delay
(
100
);
}
else
{
// We're in rate mode
...
...
@@ -116,7 +118,4 @@ void loop() {
lastTime
=
currTime
;
lastReading
=
currReading
;
}
```
\ No newline at end of file