web UI added and refactoring done
This commit is contained in:
@@ -342,7 +342,10 @@ class Protocol:
|
||||
case TaskType.CHANGE_CURRENT_LD2:
|
||||
data += _flipfour(_int_to_hex4(current_ma_to_n(min_value))) # Word 3
|
||||
data += _flipfour(_int_to_hex4(current_ma_to_n(max_value))) # Word 4
|
||||
data += _flipfour(_int_to_hex4(int(step * 100))) # Word 5
|
||||
# Word 5: current step encoded like LD1 and like min/max (current_ma_to_n),
|
||||
# NOT int(step*100) — the latter was a copy/paste from temperature scaling
|
||||
# and produced a different wire value than LD1 for the same physical step.
|
||||
data += _flipfour(_int_to_hex4(current_ma_to_n(step))) # Word 5
|
||||
data += _flipfour(_int_to_hex4(int(time_step * 100))) # Word 6: Delta_Time_µs × 100
|
||||
data += _flipfour(_int_to_hex4(temp_c_to_n(static_temp2))) # Word 7
|
||||
data += _flipfour(_int_to_hex4(current_ma_to_n(static_current1)))# Word 8
|
||||
|
||||
Reference in New Issue
Block a user