Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IoT Capstone
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
Container 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
Cooper Little
IoT Capstone
Commits
61984d3c
Commit
61984d3c
authored
1 year ago
by
Capstone 2023
Browse files
Options
Downloads
Patches
Plain Diff
cnc steup
parent
f9f1ba6b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
machines/pocket_nc.py
+3
-3
3 additions, 3 deletions
machines/pocket_nc.py
web_stuff/landing_page.html
+1
-1
1 addition, 1 deletion
web_stuff/landing_page.html
with
4 additions
and
4 deletions
machines/pocket_nc.py
+
3
−
3
View file @
61984d3c
...
...
@@ -106,7 +106,7 @@ class CurrentClampStatus:
if
len
(
fdata
)
>
WINDOW
:
fdata
.
pop
(
0
)
PLOT_RAW
=
False
if
count
%
WINDOW
==
0
and
count
>
WINDOW
:
# Reset the data in the plot
if
PLOT_RAW
:
...
...
@@ -232,8 +232,8 @@ class AccelerometerData:
return
[
self
.
read_raw_value
(
addr
)
for
addr
in
addrs
]
def
read_accelerometer
(
self
):
acc
_x
,
acc_y
,
acc_z
=
[
acc_val
/
16384
for
acc_val
in
self
.
read_raw_values
([
ACCEL_XOUT_H
,
ACCEL_YOUT_H
,
ACCEL_ZOUT_H
])]
gyro
_x
,
gyro_y
,
gyro_z
=
[
gyro_val
/
131
for
gyro_val
in
self
.
read_raw_values
([
GYRO_XOUT_H
,
GYRO_YOUT_H
,
GYRO_ZOUT_H
])]
acc
=
[
acc_val
/
16384
for
acc_val
in
self
.
read_raw_values
([
ACCEL_XOUT_H
,
ACCEL_YOUT_H
,
ACCEL_ZOUT_H
])]
gyro
=
[
gyro_val
/
131
for
gyro_val
in
self
.
read_raw_values
([
GYRO_XOUT_H
,
GYRO_YOUT_H
,
GYRO_ZOUT_H
])]
return
acc
,
gyro
def
run
(
self
):
...
...
This diff is collapsed.
Click to expand it.
web_stuff/landing_page.html
+
1
−
1
View file @
61984d3c
...
...
@@ -36,6 +36,6 @@
<img
src=
"/stuff/printing2.gif"
class=
"image_frame"
>
<h1>
Access Dashboard Here:
</h1>
<p><b>
Login with username: "anonymous", password: "anonymous" after clicking on the image below:
</b></p>
<a
href=
"https://grafana.iotcapstone.space/d/
Z1bDJxsVk
/test-homepage?orgId=1&refresh=1m"
><img
src=
"/stuff/dash_home.png"
class=
"big_frame"
></a>
<a
href=
"https://grafana.iotcapstone.space/d/
f251ec17-45fa-4885-9e13-fab4877014a7
/test-homepage?orgId=1&refresh=1m"
><img
src=
"/stuff/dash_home.png"
class=
"big_frame"
></a>
</body>
</html>
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