Work on pwr load limits
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 16 Feb 2018 02:04:13 +0000 (18:04 -0800)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 16 Feb 2018 02:04:13 +0000 (18:04 -0800)
CHANGELOG.md
src/jade/templates/indicators.jade
src/pwr/config.h
src/stylus/style.styl

index d27a69a6a4c0fee866df541fa9dee952b50b5f3b..e47a4e4eb00d59687f90d7c379a0216dcd3e44b1 100644 (file)
@@ -3,6 +3,7 @@ Buildbotics CNC Controller Firmware Change Log
 
 ## v0.3.8
  - Fixed pwr flags display
+ - Added pwr fault flags to indicators
 
 ## v0.3.7
  - Allow blocking error dialog for a period of time
index 1231d92960ad426a48bea6671a50cd2f4d40164e..e2182dce308614810ef43805e07cea0238d9da89 100644 (file)
@@ -107,6 +107,40 @@ script#indicators-template(type="text/x-template")
         th 21
         th Fault
 
+    table.pwr_fault
+      tr
+        th.header(colspan=5) Power Faults
+      tr
+        th Under voltage
+        td {{state['under_voltage'] ? 'True' : 'False'}}
+        th.separator
+        th Over voltage
+        td {{state['over_voltage'] ? 'True' : 'False'}}
+      tr
+        th Over current
+        td {{state['over_current'] ? 'True' : 'False'}}
+        th.separator
+        th Measurement error
+        td {{state['measurement_error'] ? 'True' : 'False'}}
+      tr
+        th Shunt overload
+        td {{state['shunt_overload'] ? 'True' : 'False'}}
+        th.separator
+        th Motor overload
+        td {{state['motor_overload'] ? 'True' : 'False'}}
+      tr
+        th Load 1 over temp
+        td {{state['load1_overtemp'] ? 'True' : 'False'}}
+        th.separator
+        th Load 2 over temp
+        td {{state['load2_overtemp'] ? 'True' : 'False'}}
+      tr
+        th Load 1 limiting
+        td {{state['load1_limiting'] ? 'True' : 'False'}}
+        th.separator
+        th Load 2 limiting
+        td {{state['load2_limiting'] ? 'True' : 'False'}}
+
     table.measurements
       tr
         th.header(colspan=5) Measurements
index 740065dca824ffbefed60bdf45f2c77f26c6e18b..149451431a350e9bc09aaa422fa8b29def4b363b 100644 (file)
@@ -81,7 +81,7 @@ enum {
 #define VOLTAGE_MAX 39
 #define CURRENT_MAX 25
 #define LOAD_CURRENT_MAX 10.5
-#define CURRENT_OVERTEMP 14 // Should read ~21A but over 11.86A is faulty
+#define CURRENT_OVERTEMP 19 // Should read ~21A but over 11.86A is faulty
 #define LOAD_LIMIT_TICKS 10
 #define VOLTAGE_SETTLE_COUNT 5
 #define VOLTAGE_SETTLE_PERIOD 20 // ms
index 06a0d8ab345daa40182610c0e7f6551eed66ed97..ab852430d8920f7e724d717930b36d783b038349 100644 (file)
@@ -316,7 +316,6 @@ body
   .tabs
     section
       min-height 250px
-      max-height 610px
       overflow-x hidden
       overflow-y auto
       padding 0
@@ -435,6 +434,12 @@ body
       border 1px solid #ccc
       padding 1px
 
+    &.pwr_fault th:nth-child(1)
+      text-align left
+
+    &.pwr_fault tr:nth-child(1) th
+      text-align center
+
   .logic-lo
     color black