Pin down units in ctrl_panel

Fix units to something reasonable in fields
This commit is contained in:
atse 2024-06-27 17:28:12 +08:00
parent f6f8b191a0
commit e6edfea81d

View File

@ -40,7 +40,7 @@
"children":[
{
"name":"set_current",
"title":"Set Current",
"title":"Set Current (mA)",
"type":"float",
"value":0,
"step":100,
@ -50,7 +50,6 @@
],
"triggerOnShow":true,
"decimals":6,
"suffix":"mA",
"param":[
"pwm",
"ch",
@ -60,7 +59,7 @@
},
{
"name": "set_temperature",
"title":"Set Temperature",
"title":"Set Temperature (°C)",
"type":"float",
"value":25,
"step":0.1,
@ -68,7 +67,7 @@
-273,
300
],
"format":"{value:.4f} °C",
"format":"{value:.4f}",
"param":[
"pid",
"ch",
@ -86,7 +85,7 @@
"children":[
{
"name":"max_i_pos",
"title":"Max Cooling Current",
"title":"Max Cooling Current (mA)",
"type":"float",
"value":0,
"step":100,
@ -95,7 +94,6 @@
0,
2000
],
"suffix":"mA",
"param":[
"pwm",
"ch",
@ -105,7 +103,7 @@
},
{
"name":"max_i_neg",
"title":"Max Heating Current",
"title":"Max Heating Current (mA)",
"type":"float",
"value":0,
"step":100,
@ -114,7 +112,6 @@
0,
2000
],
"suffix":"mA",
"param":[
"pwm",
"ch",
@ -124,7 +121,7 @@
},
{
"name":"max_v",
"title":"Max Voltage Difference",
"title":"Max Voltage Difference (V)",
"type":"float",
"value":0,
"step":0.1,
@ -133,7 +130,6 @@
5
],
"siPrefix":true,
"suffix":"V",
"param":[
"pwm",
"ch",
@ -154,7 +150,7 @@
"children":[
{
"name":"t0",
"title":"T₀",
"title":"T₀ (°C)",
"type":"float",
"value":25,
"step":0.1,
@ -162,7 +158,7 @@
-100,
100
],
"format":"{value:.4f} °C",
"format":"{value:.4f}",
"param":[
"s-h",
"ch",
@ -173,12 +169,11 @@
},
{
"name":"r0",
"title":"R₀",
"title":"R₀ (Ω)",
"type":"float",
"value":10000,
"step":1,
"siPrefix":true,
"suffix":"Ω",
"param":[
"s-h",
"ch",
@ -189,11 +184,10 @@
},
{
"name":"b",
"title":"B",
"title":"B (K)",
"type":"float",
"value":3950,
"step":1,
"suffix":"K",
"decimals":4,
"param":[
"s-h",
@ -276,7 +270,7 @@
"children":[
{
"name":"output_min",
"title":"Minimum",
"title":"Minimum (mA)",
"type":"float",
"step":100,
"limits":[
@ -284,7 +278,6 @@
2000
],
"decimals":6,
"suffix":"mA",
"param":[
"pid",
"ch",
@ -294,7 +287,7 @@
},
{
"name":"output_max",
"title":"Maximum",
"title":"Maximum (mA)",
"type":"float",
"step":100,
"limits":[
@ -302,7 +295,6 @@
2000
],
"decimals":6,
"suffix":"mA",
"param":[
"pid",
"ch",
@ -320,11 +312,11 @@
"children":[
{
"name":"target_temp",
"title":"Target Temperature",
"title":"Target Temperature (°C)",
"type":"float",
"value":20,
"step":0.1,
"format":"{value:.4f} °C",
"format":"{value:.4f}",
"pid_autotune":[
"target_temp",
"ch"
@ -332,7 +324,7 @@
},
{
"name":"test_current",
"title":"Test Current",
"title":"Test Current (mA)",
"type":"float",
"value":0,
"decimals":6,
@ -341,7 +333,6 @@
-2000,
2000
],
"suffix":"mA",
"pid_autotune":[
"test_current",
"ch"
@ -349,12 +340,12 @@
},
{
"name":"temp_swing",
"title":"Temperature Swing",
"title":"Temperature Swing (°C)",
"type":"float",
"value":1.5,
"step":0.1,
"prefix":"±",
"format":"{value:.4f} °C",
"format":"{value:.4f}",
"pid_autotune":[
"temp_swing",
"ch"
@ -362,11 +353,11 @@
},
{
"name":"lookback",
"title":"Lookback",
"title":"Lookback (s)",
"type":"float",
"value":3.0,
"step":0.1,
"format":"{value:.4f} s",
"format":"{value:.4f}",
"pid_autotune":[
"lookback",
"ch"