Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ECE 445 UI repo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aliceg3
ECE 445 UI repo
Commits
55bc9ca5
Commit
55bc9ca5
authored
2 years ago
by
aliceg3
Browse files
Options
Downloads
Patches
Plain Diff
updated Ui and with tensions
parent
d0e4dca0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arduino_code/test_webpage_sensors/test_webpage_sensors.ino
+10
-8
10 additions, 8 deletions
arduino_code/test_webpage_sensors/test_webpage_sensors.ino
with
10 additions
and
8 deletions
arduino_code/test_webpage_sensors/test_webpage_sensors.ino
+
10
−
8
View file @
55bc9ca5
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#include
<MultiStepper.h>
#include
<MultiStepper.h>
// Replace with your network credentials
// Replace with your network credentials
const
char
*
ssid
=
"
Jack
"
;
const
char
*
ssid
=
"
Alice
"
;
const
char
*
password
=
"temp_pass1234"
;
const
char
*
password
=
"temp_pass1234"
;
const
char
*
input_parameter1
=
"output"
;
const
char
*
input_parameter1
=
"output"
;
...
@@ -36,6 +36,8 @@ const char* input_parameter2 = "state";
...
@@ -36,6 +36,8 @@ const char* input_parameter2 = "state";
#define MOTORTORQUE .6
#define MOTORTORQUE .6
float
MOTORTENSION
=
MOTORTORQUE
/
.1778
;
Stepper
motor1
(
200
,
motor1IN1
,
motor1IN2
,
motor1IN3
,
motor1IN4
);
Stepper
motor1
(
200
,
motor1IN1
,
motor1IN2
,
motor1IN3
,
motor1IN4
);
Stepper
motor2
(
200
,
motor2IN1
,
motor2IN2
,
motor2IN3
,
motor2IN4
);
Stepper
motor2
(
200
,
motor2IN1
,
motor2IN2
,
motor2IN3
,
motor2IN4
);
...
@@ -99,7 +101,7 @@ const char index_html[] PROGMEM = R"rawliteral(
...
@@ -99,7 +101,7 @@ const char index_html[] PROGMEM = R"rawliteral(
<h2>Remotely Adjustable Boot</h2>
<h2>Remotely Adjustable Boot</h2>
<p>
<p>
<i class="fas fa-thermometer-half" style="color:#4a32a8;"></i>
<i class="fas fa-thermometer-half" style="color:#4a32a8;"></i>
<span class="sensorlabel">Pressure LEFT - Prescribed Pressure: %PRESSURE1GOAL% mmHg</span>
<b>
<span class="sensorlabel">Pressure LEFT - Prescribed Pressure: %PRESSURE1GOAL% mmHg</span>
</b>
<br />
<br />
<span id="pressure1" class="statuslabel">%PRESSURE1%</span>
<span id="pressure1" class="statuslabel">%PRESSURE1%</span>
<sup class="units">mmHg</sup>
<sup class="units">mmHg</sup>
...
@@ -110,7 +112,7 @@ const char index_html[] PROGMEM = R"rawliteral(
...
@@ -110,7 +112,7 @@ const char index_html[] PROGMEM = R"rawliteral(
</p>
</p>
<p>
<p>
<i class="fas fa-thermometer-half" style="color:#4a32a8;"></i>
<i class="fas fa-thermometer-half" style="color:#4a32a8;"></i>
<span class="sensorlabel">Pressure RIGHT - Prescribed Pressure: %PRESSURE2GOAL% mmHg</span>
<b>
<span class="sensorlabel">Pressure RIGHT - Prescribed Pressure: %PRESSURE2GOAL% mmHg</span>
</b>
<br />
<br />
<span id="pressure2" class="statuslabel">%PRESSURE2%</span>
<span id="pressure2" class="statuslabel">%PRESSURE2%</span>
<sup class="units">mmHg</sup>
<sup class="units">mmHg</sup>
...
@@ -121,14 +123,14 @@ const char index_html[] PROGMEM = R"rawliteral(
...
@@ -121,14 +123,14 @@ const char index_html[] PROGMEM = R"rawliteral(
</p>
</p>
<p>
<p>
<i class="fas fa-wrench" style="color:#4a32a8;"></i>
<i class="fas fa-wrench" style="color:#4a32a8;"></i>
<span class="sensorlabel">Ankle Motor - Prescribed T
orque
: %MOTORT
ORQUE
% N*m</span>
<b>
<span class="sensorlabel">Ankle Motor - Prescribed T
ension
: %MOTORT
ENSION
% N*m</span>
</b>
<br />
<br />
<span class="sensorlabel">Status:</span>
<span class="sensorlabel">Status:</span>
<span id="motor1status" class="statuslabel">%motor1STATUS%</span>
<span id="motor1status" class="statuslabel">%motor1STATUS%</span>
</p>
</p>
<p>
<p>
<i class="fas fa-wrench" style="color:#4a32a8;"></i>
<i class="fas fa-wrench" style="color:#4a32a8;"></i>
<span class="sensorlabel">Foot Motor - Prescribed T
orque
: %MOTORT
ORQUE
% N*m</span>
<b>
<span class="sensorlabel">Foot Motor - Prescribed T
ension
: %MOTORT
ENSION
% N*m</span>
</b>
<br />
<br />
<span class="sensorlabel">Status:</span>
<span class="sensorlabel">Status:</span>
<span id="motor2status" class="statuslabel">%motor2STATUS%</span>
<span id="motor2status" class="statuslabel">%motor2STATUS%</span>
...
@@ -251,8 +253,8 @@ String processor(const String& var){
...
@@ -251,8 +253,8 @@ String processor(const String& var){
else
if
(
var
==
"motor2STATUS"
){
else
if
(
var
==
"motor2STATUS"
){
return
String
(
motor2status
);
return
String
(
motor2status
);
}
}
else
if
(
var
==
"MOTORT
ORQUE
"
){
else
if
(
var
==
"MOTORT
ENSION
"
){
return
String
(
MOTORT
ORQUE
);
return
String
(
MOTORT
ENSION
);
}
}
else
if
(
var
==
"BUTTONPLACEHOLDER"
){
else
if
(
var
==
"BUTTONPLACEHOLDER"
){
String
buttons
=
""
;
String
buttons
=
""
;
...
@@ -460,4 +462,4 @@ void loop(){
...
@@ -460,4 +462,4 @@ void loop(){
}
}
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment