Skip to content
Snippets Groups Projects
Commit 61984d3c authored by Capstone 2023's avatar Capstone 2023
Browse files

cnc steup

parent f9f1ba6b
Branches
No related tags found
No related merge requests found
......@@ -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):
......
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment